update update.sh

This commit is contained in:
LinkLeong 2022-11-21 11:23:03 +00:00
parent b582e8f53e
commit 60608c5dc7

View file

@ -228,7 +228,7 @@ func (s *systemService) UpdateSystemVersion(version string) {
if len(config.ServerInfo.UpdateUrl) > 0 {
go command2.OnlyExec("curl -fsSL " + config.ServerInfo.UpdateUrl + " | bash")
} else {
go command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | bash")
go command2.OnlyExec("curl -fsSL https://get.casaos.io/update | bash")
}
//s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)
@ -303,7 +303,7 @@ func (s *systemService) IsServiceRunning(name string) bool {
// find thermal_zone of cpu.
// assertions:
// * thermal_zone "type" and "temp" are required fields
// - thermal_zone "type" and "temp" are required fields
// (https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-thermal)
func GetCPUThermalZone() string {
keyName := "cpu_thermal_zone"