update update.sh

This commit is contained in:
a624669980@163.com 2022-06-30 19:18:57 +08:00
parent 68666885ab
commit 4d5c7872a5
2 changed files with 4 additions and 3 deletions

View File

@ -205,7 +205,7 @@ func ShellInit() {
if !file.CheckNotExist("/casaOS") {
command.OnlyExec("source /casaOS/server/shell/update.sh ;")
}
command.OnlyExec("source /casaOS/server/shell/delete-old-service.sh ;")
command.OnlyExec("source " + config.AppInfo.ShellPath + "/delete-old-service.sh ;")
}
func CheckToken2_11() {
if len(config.ServerInfo.Token) == 0 {

View File

@ -3,7 +3,7 @@
# @Author: LinkLeong link@icewhale.com
# @Date: 2022-06-30 10:08:33
# @LastEditors: LinkLeong
# @LastEditTime: 2022-06-30 18:14:26
# @LastEditTime: 2022-06-30 19:18:35
# @FilePath: /CasaOS/shell/delete-old-service.sh
# @Description:
###
@ -100,5 +100,6 @@ Check_Exist() {
fi
Show 0 "Clearance completed."
$sudo_cmd systemctl restart ${CASA_BIN}
}
Check_Exist