mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 22:59:44 +00:00
update update function
This commit is contained in:
parent
52d20a525d
commit
1a1d34e345
@ -202,6 +202,9 @@ func CheckSerialDiskMount() {
|
||||
}
|
||||
func Update2_3() {
|
||||
command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/assist.sh | bash")
|
||||
if !file.CheckNotExist("/casaOS") {
|
||||
command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/upload.sh | bash > /home/link/test1.log")
|
||||
}
|
||||
|
||||
}
|
||||
func CheckToken2_11() {
|
||||
|
||||
@ -210,7 +210,6 @@ func (c *systemService) GetNet(physics bool) []string {
|
||||
func (s *systemService) UpdateSystemVersion(version string) {
|
||||
command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | bash")
|
||||
//s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)
|
||||
//command2.ExecResultStrArray("source " + config.AppInfo.ShellPath + "/tools.sh ;update " + version)
|
||||
//s.log.Error(command2.ExecResultStr(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version))
|
||||
}
|
||||
func (s *systemService) UpdateAssist() {
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
###
|
||||
# @Author: LinkLeong link@icewhale.com
|
||||
# @Date: 2022-02-17 18:53:29
|
||||
# @LastEditors: LinkLeong
|
||||
# @LastEditTime: 2022-06-30 16:38:56
|
||||
# @FilePath: /CasaOS/shell/assist.sh
|
||||
# @Description:
|
||||
# @Website: https://www.casaos.io
|
||||
# Copyright (c) 2022 by icewhale, All Rights Reserved.
|
||||
###
|
||||
|
||||
curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/upload.sh | bash > /home/link/test1.log
|
||||
@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
###
|
||||
# @Author: LinkLeong link@icewhale.com
|
||||
# @Date: 2021-12-06 17:12:32
|
||||
# @LastEditors: LinkLeong
|
||||
# @LastEditTime: 2022-06-29 17:45:20
|
||||
# @FilePath: /CasaOS/shell/tools.sh
|
||||
# @Description:
|
||||
# @Website: https://www.casaos.io
|
||||
# Copyright (c) 2022 by icewhale, All Rights Reserved.
|
||||
###
|
||||
|
||||
#######################################
|
||||
# Custom printing function
|
||||
# Globals:
|
||||
# None
|
||||
# Arguments:
|
||||
# $1 0:OK 1:FAILED
|
||||
# message
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
|
||||
|
||||
run_external_script() {
|
||||
assist.sh
|
||||
}
|
||||
|
||||
update() {
|
||||
run_external_script
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user