diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 2efcffa..31f191b 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -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}; diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 70495e7..a1cce92 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -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