added back ensurefilesexist

This commit is contained in:
Chris kerr 2024-08-17 22:00:03 -04:00
parent 57ca374de4
commit 56a725c5df

View File

@ -21,7 +21,8 @@ import (
) )
func main() { 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{}) restartChan := make(chan struct{})
go utils.WatchConfigFile("config.yml", restartChan) go utils.WatchConfigFile("config.yml", restartChan)
@ -122,4 +123,4 @@ func ListenAndServe(w http.ResponseWriter, r *http.Request) {
} else { } else {
routes.IndexHandler(w, r) routes.IndexHandler(w, r)
} }
} }