From 439a960fd0da5fc56be47df8013c9c0290c2b65f Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Fri, 19 Apr 2024 19:38:49 +0800 Subject: [PATCH] fix: adb issue --- debbuild/22.04/DEBIAN/postinst | 4 +++- debbuild/DEBIAN/postinst | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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