update
This commit is contained in:
+3
-6
@@ -11,12 +11,9 @@ import (
|
||||
var Duration time.Duration
|
||||
|
||||
func init() {
|
||||
killp()
|
||||
for _, arg := range os.Args {
|
||||
if arg == "-d" {
|
||||
initStore()
|
||||
Daemon()
|
||||
}
|
||||
_, err := os.Stat("/etc/sillyGirl/")
|
||||
if err != nil {
|
||||
os.MkdirAll("/etc/sillyGirl/", os.ModePerm)
|
||||
}
|
||||
initStore()
|
||||
ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml")
|
||||
|
||||
Reference in New Issue
Block a user