1
0

fix: adb issue

This commit is contained in:
2024-04-19 19:38:49 +08:00
parent 5a1a60c569
commit 439a960fd0
2 changed files with 6 additions and 2 deletions

View File

@@ -58,7 +58,9 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then
# if [ ! -e "${RedisRootDir}" ]; then # if [ ! -e "${RedisRootDir}" ]; then
# mkdir -p ${RedisRootDir} # mkdir -p ${RedisRootDir}
# fi # fi
if [ -e "${RedisOldRootDir}/bin/redis-server" && -e "${SystemdRootDir}/adb.service" ]; then
systemctl stop adb.service
fi
cp -rf ${DependsRootDir}/adb/* / cp -rf ${DependsRootDir}/adb/* /
chmod +rx ${RedisRootDir}/bin/* chmod +rx ${RedisRootDir}/bin/*
if [ ! -e "${RedisConfDir}/adb.conf" ]; then if [ ! -e "${RedisConfDir}/adb.conf" ]; then

View File

@@ -58,7 +58,9 @@ if [ ! -e "${RedisRootDir}/bin/adb-server" ]; then
# if [ ! -e "${RedisRootDir}" ]; then # if [ ! -e "${RedisRootDir}" ]; then
# mkdir -p ${RedisRootDir} # mkdir -p ${RedisRootDir}
# fi # fi
if [ -e "${RedisOldRootDir}/bin/redis-server" && -e "${SystemdRootDir}/adb.service" ]; then
systemctl stop adb.service
fi
cp -rf ${DependsRootDir}/adb/* / cp -rf ${DependsRootDir}/adb/* /
chmod +rx ${RedisRootDir}/bin/* chmod +rx ${RedisRootDir}/bin/*
if [ ! -e "${RedisConfDir}/adb.conf" ]; then if [ ! -e "${RedisConfDir}/adb.conf" ]; then