From 4434ba522ba1665c99aa86c8ef2f612b061889e1 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Fri, 9 Sep 2022 07:36:49 +0100 Subject: [PATCH] update upgrade script address --- build/sysroot/usr/share/casaos/shell/update.sh | 2 +- service/system.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/sysroot/usr/share/casaos/shell/update.sh b/build/sysroot/usr/share/casaos/shell/update.sh index fdae5ca..2b87654 100644 --- a/build/sysroot/usr/share/casaos/shell/update.sh +++ b/build/sysroot/usr/share/casaos/shell/update.sh @@ -9,4 +9,4 @@ ### -curl -fsSL https://raw.githubusercontent.com/LinkLeong/casaos-alpha/main/new.update.sh | bash \ No newline at end of file +curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/upgrade.sh | bash \ No newline at end of file diff --git a/service/system.go b/service/system.go index c6ed444..b332d01 100644 --- a/service/system.go +++ b/service/system.go @@ -221,7 +221,7 @@ func (s *systemService) UpdateSystemVersion(version string) { } file.CreateFile(config.AppInfo.LogPath + "/upgrade.log") //go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/LinkLeong/casaos-alpha/main/update.sh | bash") - go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | sudo bash") + go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/upgrade.sh | bash") //s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version) //s.log.Error(command2.ExecResultStr(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)) }