mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-24 01:17:13 +00:00
added back ensurefilesexist
This commit is contained in:
parent
57ca374de4
commit
56a725c5df
5
main.go
5
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user