summary refs log tree commit diff stats
path: root/svc/conf.go
diff options
context:
space:
mode:
Diffstat (limited to 'svc/conf.go')
-rw-r--r--svc/conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/conf.go b/svc/conf.go
index 5f826fb..c563efe 100644
--- a/svc/conf.go
+++ b/svc/conf.go
@@ -177,7 +177,7 @@ func bindConfig() {
 	confObj.CacheInterval = viper.GetDuration("StatusFetchInterval")
 	confObj.DBInterval = viper.GetDuration("DatabasePushInterval")
 	txtPass := viper.GetString("AdminPassword")
-	if txtPass == "please_change_me" {
+	if txtPass == "please_change_me" || strings.TrimSpace(txtPass) == "" {
 		fmt.Println("Please set AdminPassword in getwtxt.yml")
 		os.Exit(1)
 	}