From a434d276f652a1e2229c3fff22dbe74b367d3733 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Fri, 19 Apr 2024 19:48:16 +0800 Subject: [PATCH] fix: ... --- debbuild/22.04/DEBIAN/postinst | 2 +- debbuild/DEBIAN/postinst | 2 +- .../omc/depends/adb/{usr => }/lib/systemd/system/adb.service | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename debbuild/usr/local/omc/depends/adb/{usr => }/lib/systemd/system/adb.service (100%) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 6dfaaed..7888778 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -58,7 +58,7 @@ 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 + if [ -e "${RedisOldRootDir}/bin/redis-server"] && [ -e "${SystemdRootDir}/adb.service" ]; then systemctl stop adb.service fi cp -rf ${DependsRootDir}/adb/* / diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 4c65fa4..1acf108 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -58,7 +58,7 @@ 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 + if [ -e "${RedisOldRootDir}/bin/redis-server"] && [ -e "${SystemdRootDir}/adb.service" ]; then systemctl stop adb.service fi cp -rf ${DependsRootDir}/adb/* / diff --git a/debbuild/usr/local/omc/depends/adb/usr/lib/systemd/system/adb.service b/debbuild/usr/local/omc/depends/adb/lib/systemd/system/adb.service similarity index 100% rename from debbuild/usr/local/omc/depends/adb/usr/lib/systemd/system/adb.service rename to debbuild/usr/local/omc/depends/adb/lib/systemd/system/adb.service