mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Add console message about new config location
This commit is contained in:
parent
2dce9b4c48
commit
77a9469ff8
@ -154,6 +154,10 @@ func serveUpdateNoticeIfConfigLocationNotMigrated(configPath string) bool {
|
|||||||
templateFile, _ := templateFS.Open("v0.7-update-notice-page.html")
|
templateFile, _ := templateFS.Open("v0.7-update-notice-page.html")
|
||||||
bodyContents, _ := io.ReadAll(templateFile)
|
bodyContents, _ := io.ReadAll(templateFile)
|
||||||
|
|
||||||
|
// TODO: update - add link
|
||||||
|
fmt.Println("!!! WARNING !!!")
|
||||||
|
fmt.Println("The default location of glance.yml in the Docker image has changed starting from v0.7.0, please see <link> for more information.")
|
||||||
|
|
||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(staticFS))))
|
mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(staticFS))))
|
||||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user