Skip to content

Commit

Permalink
modify mds,etcd,snapshotclone log directory
Browse files Browse the repository at this point in the history
Change-Id: Iafca98a43f04937f77fa6ea47457a7217f069d21
(cherry picked from commit ff03fa330284d9b7410fe932808a05f7c02de724)
  • Loading branch information
charisu committed May 12, 2020
1 parent f70e025 commit 525e89d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
12 changes: 12 additions & 0 deletions curve-mds/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

logdir=/data/log/curve

mkdir -p ${logdir}

chown -R root:root ${logdir}
chmod -R 777 ${logdir}

exit 0
2 changes: 1 addition & 1 deletion curve-mds/home/nbs/etcd-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
confPath=/etc/curve/etcd/etcd.conf.yml

# 日志文件目录
logDir=${HOME}/etcdlog
logDir=/data/log/curve/etcd

# 日志文件路径
logPath=${logDir}/etcd.log
Expand Down
2 changes: 1 addition & 1 deletion curve-mds/home/nbs/mds-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ curveBin=/usr/bin/curve-mds
confPath=/etc/curve/mds.conf

# 日志文件路径
logPath=${HOME}/mdslog
logPath=/data/log/curve/mds

# mdsAddr
mdsAddr=
Expand Down
12 changes: 12 additions & 0 deletions curve-snapshotcloneserver/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

logdir=/data/log/curve

mkdir -p ${logdir}

chown -R root:root ${logdir}
chmod -R 777 ${logdir}

exit 0
2 changes: 1 addition & 1 deletion curve-snapshotcloneserver/home/nbs/snapshot-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ curveBin=/usr/bin/curve-snapshotcloneserver
confPath=/etc/curve/snapshot_clone_server.conf

# 日志文件路径
logPath=${HOME}/snapshotlog
logPath=/data/log/curve/snapshotclone

# serverAddr
serverAddr=
Expand Down

0 comments on commit 525e89d

Please sign in to comment.