Skip to content

Commit 870e7f2

Browse files
refactor: change dir permission.
1 parent b1a70b7 commit 870e7f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

installer/start-redis.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ if [ ! -d /opt/maxkb/data/redis ]; then
44
mkdir -p /opt/maxkb/data/redis
55
chmod 700 /opt/maxkb/data/redis
66
fi
7-
mkdir -p /opt/maxkb/logs
8-
7+
if [ ! -d /opt/maxkb/logs ]; then
8+
mkdir -p /opt/maxkb/logs
9+
chmod 700 /opt/maxkb/logs
10+
fi
911
if [ ! -f /opt/maxkb/conf/redis.conf ]; then
1012
mkdir -p /opt/maxkb/conf
1113
touch /opt/maxkb/conf/redis.conf

0 commit comments

Comments
 (0)