mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
add cli default script
This commit is contained in:
parent
1ca7a7875d
commit
ba40bd9289
@ -167,6 +167,9 @@ func (cli *CLI) Start(m *ctx.Message, arg ...string) bool { // {{{
|
|||||||
msg.Result(0, msg.Meta["return"])
|
msg.Result(0, msg.Meta["return"])
|
||||||
} else {
|
} else {
|
||||||
m.Spawn().Cmd("alias", "import", "nfs")
|
m.Spawn().Cmd("alias", "import", "nfs")
|
||||||
|
m.Spawn().Cmd("login", "root", "root")
|
||||||
|
m.Spawn().Cmd("context", "web", "serve", "usr", ":9094")
|
||||||
|
m.Spawn().Cmd("context", "web", "right", "add", "shy", "command", "/upload", "dir", "usr")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user