mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Check config files in doctor script
This commit is contained in:
parent
942bca9310
commit
cb266b8e6d
1 changed files with 17 additions and 17 deletions
34
bin/doctor
34
bin/doctor
|
@ -118,23 +118,23 @@ function print_warnings() {
|
|||
function check_config_files() {
|
||||
print_section_separator "Configuration"
|
||||
|
||||
docker_compose_file="config/docker-compose.yml"
|
||||
print_sub_point "$docker_compose_file"
|
||||
if [[ ! -f "$docker_compose_file" ]]; then
|
||||
print_sub_sub_point "status: MISSING !"
|
||||
add_warning "configuration file $docker_compose_file not found"
|
||||
else
|
||||
print_sub_sub_point "status: present"
|
||||
fi
|
||||
|
||||
local_conf_file="config/local.yml"
|
||||
print_sub_point "$local_conf_file"
|
||||
if [[ ! -f "$local_conf_file" ]]; then
|
||||
print_sub_sub_point "status: MISSING !"
|
||||
add_warning "configuration file $local_conf_file not found"
|
||||
else
|
||||
print_sub_sub_point "status: present"
|
||||
fi
|
||||
config_files=(
|
||||
"config/overleaf.rc"
|
||||
"config/variables.env"
|
||||
"config/docker-compose.base.yml"
|
||||
"config/docker-compose.mongo.yml"
|
||||
"config/docker-compose.redis.yml"
|
||||
)
|
||||
for config_file in "${config_files[@]}"
|
||||
do
|
||||
print_sub_point "$config_file"
|
||||
if [[ ! -f "$config_file" ]]; then
|
||||
print_sub_sub_point "status: MISSING !"
|
||||
add_warning "configuration file $config_file not found"
|
||||
else
|
||||
print_sub_sub_point "status: present"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue