Skip to content

Commit

Permalink
[fix] fix entrypoint bug for monitor role
Browse files Browse the repository at this point in the history
Signed-off-by: caoxianfei1 <[email protected]>
  • Loading branch information
caoxianfei1 committed Nov 20, 2023
1 parent d890424 commit e9f8f32
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion curvefs/docker/debian11/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ function prepare() {
}

function create_directory() {
chmod 700 "$g_prefix/data"
if [ "$g_role" != "monitor" ]; then
chmod 700 "$g_prefix/data"
fi

if [ "$g_role" == "etcd" ]; then
mkdir -p "$g_prefix/data/wal"
elif [ "$g_role" == "metaserver" ]; then
Expand Down
5 changes: 4 additions & 1 deletion curvefs/docker/openeuler/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ function prepare() {
}

function create_directory() {
chmod 700 "$g_prefix/data"
if [ "$g_role" != "monitor" ]; then
chmod 700 "$g_prefix/data"
fi

if [ "$g_role" == "etcd" ]; then
mkdir -p "$g_prefix/data/wal"
elif [ "$g_role" == "metaserver" ]; then
Expand Down
5 changes: 4 additions & 1 deletion docker/debian11/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ function prepare() {
}

function create_directory() {
chmod 700 "$g_prefix/data"
if [ "$g_role" != "monitor" ]; then
chmod 700 "$g_prefix/data"
fi

if [ "$g_role" == "etcd" ]; then
mkdir -p "$g_prefix/data/wal"
elif [ "$g_role" == "client" ]; then
Expand Down
5 changes: 4 additions & 1 deletion docker/openeuler/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ function prepare() {
}

function create_directory() {
chmod 700 "$g_prefix/data"
if [ "$g_role" != "monitor" ]; then
chmod 700 "$g_prefix/data"
fi

if [ "$g_role" == "etcd" ]; then
mkdir -p "$g_prefix/data/wal"
elif [ "$g_role" == "client" ]; then
Expand Down

0 comments on commit e9f8f32

Please sign in to comment.