update update.sh
This commit is contained in:
parent
b582e8f53e
commit
60608c5dc7
1 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue