1
0

fix: all-in-one packages issue

This commit is contained in:
2024-03-26 11:15:21 +08:00
parent 2915caff5f
commit decc009db0
2 changed files with 8 additions and 2 deletions

View File

@@ -54,7 +54,10 @@ done
# Install redis db if not exist /usr/local/db
if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
cp -rf ${DependsRootDir}/redis /usr/local/db
if [ ! -e "${RedisRootDir}" ]; then
mkdir -p ${RedisRootDir}
fi
cp -rf ${DependsRootDir}/redis/* ${RedisRootDir}
chmod +rx ${RedisRootDir}/bin/*
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};