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};