From 77a9469ff8c37346ac4801062a8f758bea97525f Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:11:07 +0000 Subject: [PATCH] Add console message about new config location --- internal/glance/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/glance/main.go b/internal/glance/main.go index addb089..9f80633 100644 --- a/internal/glance/main.go +++ b/internal/glance/main.go @@ -154,6 +154,10 @@ func serveUpdateNoticeIfConfigLocationNotMigrated(configPath string) bool { templateFile, _ := templateFS.Open("v0.7-update-notice-page.html") 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 for more information.") + mux := http.NewServeMux() mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(staticFS)))) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {