From decc009db08facbd2a13c090d571777f0e9c94c9 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 26 Mar 2024 11:15:21 +0800 Subject: [PATCH] fix: all-in-one packages issue --- debbuild/22.04/DEBIAN/postinst | 5 ++++- debbuild/DEBIAN/postinst | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index e8a73b5..54a27c5 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -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 /usr/local/db/bin/* if [ ! -e "${RedisConfDir}/redis.conf" ]; then cp ${RedisConfDir}/default/redis.conf ${RedisConfDir}; diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index fd00bd5..1fdafb6 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -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};