1
0

fix: redis config dir

This commit is contained in:
2023-10-19 13:00:08 +08:00
parent 353009689b
commit 7bc5b4d5e6
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ done
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};
else
sed -i 's/replica-read-only yes/replica-read-only no/g' $(RedisConfDir)/redis.conf
sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf
fi
if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; fi
if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi