From 56a725c5df0a810fab17ed468d35a5dc27caa3e4 Mon Sep 17 00:00:00 2001 From: Chris kerr Date: Sat, 17 Aug 2024 22:00:03 -0400 Subject: [PATCH] added back ensurefilesexist --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 87a1b41..3f59517 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,8 @@ import ( ) func main() { - utils.ClearTemporaryBans() + utils.EnsureFileExists("config.yml", "app/static/examples/config.example.yml") + utils.EnsureFileExists("relay_metadata.json", "app/static/examples/relay_metadata.example.json") restartChan := make(chan struct{}) go utils.WatchConfigFile("config.yml", restartChan) @@ -122,4 +123,4 @@ func ListenAndServe(w http.ResponseWriter, r *http.Request) { } else { routes.IndexHandler(w, r) } -} \ No newline at end of file +}