Browse Source

Create default config on install

Vova Tkach 6 years ago
parent
commit
bbd7bfc312
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules/module_index_act_mysql_setup.go

+ 6 - 0
modules/module_index_act_mysql_setup.go

@@ -389,6 +389,12 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			}
 		}
 
+		// Create first config file
+		if err := wrap.ConfigSave(); err != nil {
+			wrap.MsgError(err.Error())
+			return
+		}
+
 		// Reload current page
 		wrap.Write(`window.location.reload(false);`)
 	})