diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 39717fa..6dfaaed 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -58,7 +58,9 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then # if [ ! -e "${RedisRootDir}" ]; then # mkdir -p ${RedisRootDir} # fi - + if [ -e "${RedisOldRootDir}/bin/redis-server" && -e "${SystemdRootDir}/adb.service" ]; then + systemctl stop adb.service + fi cp -rf ${DependsRootDir}/adb/* / chmod +rx ${RedisRootDir}/bin/* if [ ! -e "${RedisConfDir}/adb.conf" ]; then diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 220ca16..4c65fa4 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -58,7 +58,9 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then # if [ ! -e "${RedisRootDir}" ]; then # mkdir -p ${RedisRootDir} # fi - + if [ -e "${RedisOldRootDir}/bin/redis-server" && -e "${SystemdRootDir}/adb.service" ]; then + systemctl stop adb.service + fi cp -rf ${DependsRootDir}/adb/* / chmod +rx ${RedisRootDir}/bin/* if [ ! -e "${RedisConfDir}/adb.conf" ]; then