From 870e7f271aa30b7ce92e5aa13021c2730f0f3dd9 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Tue, 12 Aug 2025 11:13:51 +0800 Subject: [PATCH] refactor: change dir permission. --- installer/start-redis.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/start-redis.sh b/installer/start-redis.sh index fe0a9dfee..92f333f20 100644 --- a/installer/start-redis.sh +++ b/installer/start-redis.sh @@ -4,8 +4,10 @@ if [ ! -d /opt/maxkb/data/redis ]; then mkdir -p /opt/maxkb/data/redis chmod 700 /opt/maxkb/data/redis fi -mkdir -p /opt/maxkb/logs - +if [ ! -d /opt/maxkb/logs ]; then + mkdir -p /opt/maxkb/logs + chmod 700 /opt/maxkb/logs +fi if [ ! -f /opt/maxkb/conf/redis.conf ]; then mkdir -p /opt/maxkb/conf touch /opt/maxkb/conf/redis.conf