From 7cbfd4757e6bd6a4310b0cf4ef385db86eb29f85 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 17 Apr 2024 18:37:16 +0800 Subject: [PATCH] opt: adb --- debbuild/22.04/DEBIAN/postinst | 1 + debbuild/DEBIAN/postinst | 1 + 2 files changed, 2 insertions(+) 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