1
0
Fork 0
pixelfed/docker/shared/root/docker/entrypoint.d/00-check-config.sh

19 lines
470 B
Bash
Executable File

#!/bin/bash
source /docker/helpers.sh
entrypoint-set-script-name "$0"
# Validating dot-env files for any issues
for file in "${dot_env_files[@]}"; do
if file-exists "$file"; then
log-warning "Could not source file [${file}]: does not exists"
continue
fi
log-info "Linting dotenv file ${file}"
dotenv-linter --skip=QuoteCharacter --skip=UnorderedKey "${file}"
done
# Write the config cache
run-as-runtime-user php artisan config:cache