mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
fix 02-check-config.sh logic and bad .env.docker syntax
This commit is contained in:
parent
6fee842b7a
commit
c859367e10
2 changed files with 4 additions and 5 deletions
|
@ -1102,10 +1102,10 @@ DOCKER_WORKER_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|||
################################################################################
|
||||
|
||||
# Set this to a non-empty value (e.g. "disabled") to disable the [proxy] and [proxy-acme] service
|
||||
#DOCKER_PROXY_PROFILE=""
|
||||
DOCKER_PROXY_PROFILE=""
|
||||
|
||||
# Set this to a non-empty value (e.g. "disabled") to disable the [proxy-acme] service
|
||||
DOCKER_PROXY_ACME_PROFILE="${DOCKER_PROXY_PROFILE:-}"
|
||||
DOCKER_PROXY_ACME_PROFILE="${DOCKER_PROXY_PROFILE}"
|
||||
|
||||
# How often Docker health check should run for [proxy] service
|
||||
DOCKER_PROXY_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
||||
|
|
|
@ -8,11 +8,10 @@ entrypoint-set-script-name "$0"
|
|||
|
||||
# Validating dot-env files for any issues
|
||||
for file in "${dot_env_files[@]}"; do
|
||||
if file-exists "$file"; then
|
||||
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}"
|
||||
run-as-current-user dotenv-linter --skip=QuoteCharacter --skip=UnorderedKey "${file}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue