Skip to content
Snippets Groups Projects
Unverified Commit 1308cefc authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

Fix startup logic to correctly detect new installs when a config file is used (#35626)

parent 40a3c2dd
No related branches found
No related tags found
No related merge requests found
......@@ -115,12 +115,12 @@
(log/info (trs "Setting up prometheus metrics"))
(prometheus/setup!)
(init-status/set-progress! 0.6))
;; initialize Metabase from an `config.yml` file if present (Enterprise Edition™ only)
(config-from-file/init-from-file-if-code-available!)
(init-status/set-progress! 0.7)
;; run a very quick check to see if we are doing a first time installation
;; the test we are using is if there is at least 1 User in the database
(let [new-install? (not (setup/has-user-setup))]
;; initialize Metabase from an `config.yml` file if present (Enterprise Edition™ only)
(config-from-file/init-from-file-if-code-available!)
(init-status/set-progress! 0.7)
(when new-install?
(log/info (trs "Looks like this is a new installation ... preparing setup wizard"))
;; create setup token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment