mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Update doctor to account for image version
This commit is contained in:
parent
ecd9443477
commit
51557259f3
1 changed files with 7 additions and 6 deletions
13
bin/doctor
13
bin/doctor
|
@ -117,6 +117,9 @@ function print_warnings() {
|
|||
function check_config_files() {
|
||||
print_section_separator "Configuration"
|
||||
|
||||
image_version="$(head -z -n 1 ./lib/sharelatex-image-version)"
|
||||
print_point 0 "image version: $image_version"
|
||||
|
||||
config_files=(
|
||||
"config/overleaf.rc"
|
||||
"config/variables.env"
|
||||
|
@ -140,18 +143,16 @@ function check_config_files() {
|
|||
grep -E '^[A-Z_]+=' | # filter down to variable assignments
|
||||
awk '{print "RC_" $0}' # prefix with 'RC_'
|
||||
)
|
||||
if [[ "${RC_IMAGE:-null}" != "null" ]]; then
|
||||
print_point 2 "IMAGE: $RC_IMAGE"
|
||||
else
|
||||
print_point 2 "IMAGE: MISSING !"
|
||||
add_warning "rc file, IMAGE not set"
|
||||
fi
|
||||
# Check some vars from the RC file
|
||||
if [[ "${RC_SHARELATEX_DATA_PATH:-null}" != "null" ]]; then
|
||||
print_point 2 "SHARELATEX_DATA_PATH: $RC_SHARELATEX_DATA_PATH"
|
||||
else
|
||||
print_point 2 "SHARELATEX_DATA_PATH: MISSING !"
|
||||
add_warning "rc file, SHARELATEX_DATA_PATH not set"
|
||||
fi
|
||||
print_point 2 "SERVER_PRO: $RC_SERVER_PRO"
|
||||
print_point 2 "MONGO_ENABLED: $RC_MONGO_ENABLED"
|
||||
print_point 2 "REDIS_ENABLED: $RC_REDIS_ENABLED"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue