mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
update update.sh
This commit is contained in:
parent
68666885ab
commit
4d5c7872a5
@ -205,7 +205,7 @@ func ShellInit() {
|
|||||||
if !file.CheckNotExist("/casaOS") {
|
if !file.CheckNotExist("/casaOS") {
|
||||||
command.OnlyExec("source /casaOS/server/shell/update.sh ;")
|
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() {
|
func CheckToken2_11() {
|
||||||
if len(config.ServerInfo.Token) == 0 {
|
if len(config.ServerInfo.Token) == 0 {
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# @Author: LinkLeong link@icewhale.com
|
# @Author: LinkLeong link@icewhale.com
|
||||||
# @Date: 2022-06-30 10:08:33
|
# @Date: 2022-06-30 10:08:33
|
||||||
# @LastEditors: LinkLeong
|
# @LastEditors: LinkLeong
|
||||||
# @LastEditTime: 2022-06-30 18:14:26
|
# @LastEditTime: 2022-06-30 19:18:35
|
||||||
# @FilePath: /CasaOS/shell/delete-old-service.sh
|
# @FilePath: /CasaOS/shell/delete-old-service.sh
|
||||||
# @Description:
|
# @Description:
|
||||||
###
|
###
|
||||||
@ -99,6 +99,7 @@ Check_Exist() {
|
|||||||
${sudo_cmd} rm -rf /casaOS
|
${sudo_cmd} rm -rf /casaOS
|
||||||
fi
|
fi
|
||||||
Show 0 "Clearance completed."
|
Show 0 "Clearance completed."
|
||||||
|
|
||||||
|
$sudo_cmd systemctl restart ${CASA_BIN}
|
||||||
}
|
}
|
||||||
Check_Exist
|
Check_Exist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user