From 057b66f1d605fb543fdec93acc500ca224f68038 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 26 Mar 2024 09:50:17 +0800 Subject: [PATCH] fix: all-in-one package issue --- debbuild/22.04/DEBIAN/postinst | 2 +- debbuild/DEBIAN/postinst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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