1
0

fix: all-in-one package issue

This commit is contained in:
2024-03-26 09:50:17 +08:00
parent f1c9cdb20d
commit 057b66f1d6
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ for CFile in ${CFileList}; do
done
# Install redis db if not exist /usr/local/db
if [ ! -e "${RedisRootDir}/bin/redis-server" ]
if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
cp -rf ${DependsRootDir}/redis /usr/local/adb
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};

View File

@@ -43,7 +43,6 @@ if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
chmod +rx /usr/local/omc/bin/*
chmod +rx /usr/local/omc/*
chmod +rx /usr/local/db/bin/*
chmod +rx /usr/local/bin/*
chmod -R 755 /usr/local/omc/htdocs/front
@@ -54,8 +53,9 @@ for CFile in ${CFileList}; do
done
# Install redis db if not exist /usr/local/db
if [ ! -e "${RedisRootDir}/bin/redis-server" ]
if [ ! -e "${RedisRootDir}/bin/redis-server" ]; then
cp -rf ${DependsRootDir}/redis /usr/local/adb
chmod +rx /usr/local/db/bin/*
if [ ! -e "${RedisConfDir}/redis.conf" ]; then
cp ${RedisConfDir}/default/redis.conf ${RedisConfDir};
else