mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Doctor: warn if server pro, but not quay login
This commit is contained in:
parent
cc1b2bee3f
commit
c1c5272c6e
1 changed files with 14 additions and 0 deletions
14
bin/doctor
14
bin/doctor
|
@ -173,6 +173,20 @@ function check_config_files() {
|
|||
fi
|
||||
|
||||
print_point 2 "SERVER_PRO: $SERVER_PRO"
|
||||
if [[ "${SERVER_PRO:-null}" == "true" ]]; then
|
||||
local logged_in
|
||||
logged_in="$(grep -q xxquay.io ~/.docker/config.json && echo 'true' || echo 'false')"
|
||||
print_point 3 "logged in to quay.io: $logged_in"
|
||||
if [[ "${logged_in}" == "false" ]]; then
|
||||
local warning_message=(
|
||||
"Server Pro enabled, but not logged in to quay.io repository."
|
||||
"These credentials are supplied by Overleaf with a Server Pro"
|
||||
"license. See https://www.overleaf.com/for/enterprises/features"
|
||||
"for more details."
|
||||
)
|
||||
add_warning "${warning_message[@]}"
|
||||
fi
|
||||
fi
|
||||
|
||||
print_point 2 "MONGO_ENABLED: $MONGO_ENABLED"
|
||||
if [[ "${MONGO_URL:-null}" != "null" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue