forked from mirror/pixelfed
19 lines
470 B
Bash
Executable File
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
|