diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 3d117b5..1110ead 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -69,6 +69,7 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then # copy the orangin dump.rdb if [ -e "${RedisOldRootDir}/bin/conf/dump.rdb" ]; then cp -f ${RedisOldRootDir}/bin/conf/dump.rdb ${RedisConfDir}; + mv -rf ${RedisRootDir}/db ${RedisRootDir}/adb.old fi # cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir} fi diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index ef95307..bc5b181 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -69,6 +69,7 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then # copy the orangin dump.rdb if [ -e "${RedisOldRootDir}/bin/conf/dump.rdb" ]; then cp -f ${RedisOldRootDir}/bin/conf/dump.rdb ${RedisConfDir}; + mv -rf ${RedisRootDir}/db ${RedisRootDir}/adb.old fi # cp -f ${DependsRootDir}/systemd/adb.service ${SystemdRootDir} fi