From d83e29c15da71c48e6e293ab66a066bd615ebe1c Mon Sep 17 00:00:00 2001 From: hunterlong Date: Wed, 29 Jan 2020 22:00:33 -0800 Subject: [PATCH] vue --- cmd/main.go | 4 ++-- frontend/src/forms/Notifier.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 0259d350..aa5fd737 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -96,6 +96,7 @@ func main() { configs, err := core.LoadConfigFile(utils.Directory) if err != nil { log.Errorln(err) + core.CoreApp.Setup = false writeAble, err := utils.DirWritable(utils.Directory) if err != nil { log.Fatalln(err) @@ -103,7 +104,6 @@ func main() { if !writeAble { log.Fatalf("Statping does not have write permissions at: %v\nYou can change this directory by setting the STATPING_DIR environment variable to a dedicated path before starting.", utils.Directory) } - core.CoreApp.Setup = false if err := handlers.RunHTTPServer(ipAddress, port); err != nil { log.Fatalln(err) } @@ -149,7 +149,7 @@ func mainProcess() error { } core.CoreApp.MigrateDatabase() core.InitApp() - if !core.CoreApp.Setup { + if core.CoreApp.Setup { plugin.LoadPlugins() if err := handlers.RunHTTPServer(ipAddress, port); err != nil { log.Fatalln(err) diff --git a/frontend/src/forms/Notifier.vue b/frontend/src/forms/Notifier.vue index 6ba09c4d..e44cd3f2 100644 --- a/frontend/src/forms/Notifier.vue +++ b/frontend/src/forms/Notifier.vue @@ -60,9 +60,9 @@