summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index 97a539e..f34ba16 100644
--- a/main.go
+++ b/main.go
@@ -54,7 +54,14 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyStart(w)
indexBodyScanConfig(w)
indexDivEnd(w)
- writeFile(w, "footer.html")
+ pfile, err := os.ReadFile("/etc/gowebd/footer.html")
+ if err == nil {
+ fmt.Fprint(w, string(pfile))
+ } else {
+ log.Warn(err, "no footer filee found in /etc/gowebd/footer.html")
+ log.Warn("falling back to the resources/footer.html")
+ writeFile(w, "footer.html")
+ }
indexBodyEnd(w)
return
}