package inits
|
|
|
|
import (
|
|
"lapp_-wy/inits/parse"
|
|
"lapp_-wy/inits/sys"
|
|
)
|
|
|
|
func Init() {
|
|
parse.AppOtherParse()
|
|
|
|
initRootUser()
|
|
}
|
|
|
|
func initRootUser() {
|
|
// root is existed?
|
|
if sys.CheckRootExit() {
|
|
return
|
|
}
|
|
|
|
// create root user
|
|
sys.CreateRoot()
|
|
|
|
sys.CreateSystemRole()
|
|
|
|
}
|
|
|
|
|