mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-08 15:43:17 +00:00
Update init.go
This commit is contained in:
parent
5a5e99149e
commit
68666885ab
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
func InitFunction() {
|
func InitFunction() {
|
||||||
go checkSystemApp()
|
go checkSystemApp()
|
||||||
Update2_3()
|
ShellInit()
|
||||||
CheckSerialDiskMount()
|
CheckSerialDiskMount()
|
||||||
|
|
||||||
CheckToken2_11()
|
CheckToken2_11()
|
||||||
@ -200,7 +200,7 @@ func CheckSerialDiskMount() {
|
|||||||
service.MyService.Disk().RemoveLSBLKCache()
|
service.MyService.Disk().RemoveLSBLKCache()
|
||||||
command.OnlyExec("source " + config.AppInfo.ShellPath + "/helper.sh ;AutoRemoveUnuseDir")
|
command.OnlyExec("source " + config.AppInfo.ShellPath + "/helper.sh ;AutoRemoveUnuseDir")
|
||||||
}
|
}
|
||||||
func Update2_3() {
|
func ShellInit() {
|
||||||
command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/assist.sh | bash")
|
command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/assist.sh | bash")
|
||||||
if !file.CheckNotExist("/casaOS") {
|
if !file.CheckNotExist("/casaOS") {
|
||||||
command.OnlyExec("source /casaOS/server/shell/update.sh ;")
|
command.OnlyExec("source /casaOS/server/shell/update.sh ;")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user