Merge branch 'feature/traefik-authelia-integration' of ssh://gitea.opossum-arcturus.ts.net:10000/aki/docker-compose-nas into feature/traefik-authelia-integration
Some checks failed
/ validate-docker-compose (push) Has been cancelled
Some checks failed
/ validate-docker-compose (push) Has been cancelled
This commit is contained in:
commit
f9531228d6
@ -273,20 +273,30 @@ update_authelia_config() {
|
||||
|
||||
# Update secrets in temp file if they existed in the backup
|
||||
if [[ -n "$existing_jwt_secret" && "$existing_jwt_secret" != '""' && "$existing_jwt_secret" != "null" ]]; then
|
||||
yq e -i '.identity_validation.reset_password.jwt_secret = strenv(existing_jwt_secret)' --env existing_jwt_secret="$existing_jwt_secret" "$TEMP_CONFIG"
|
||||
existing_jwt_secret="$existing_jwt_secret" \
|
||||
yq e -i '.identity_validation.reset_password.jwt_secret = strenv(existing_jwt_secret)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
if [[ -n "$existing_session_secret" && "$existing_session_secret" != '""' && "$existing_session_secret" != "null" ]]; then
|
||||
yq e -i '.session.secret = strenv(existing_session_secret)' --env existing_session_secret="$existing_session_secret" "$TEMP_CONFIG"
|
||||
existing_session_secret="$existing_session_secret" \
|
||||
yq e -i '.session.secret = strenv(existing_session_secret)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
if [[ -n "$existing_storage_key" && "$existing_storage_key" != '""' && "$existing_storage_key" != "null" ]]; then
|
||||
yq e -i '.storage.encryption_key = strenv(existing_storage_key)' --env existing_storage_key="$existing_storage_key" "$TEMP_CONFIG"
|
||||
existing_storage_key="$existing_storage_key" \
|
||||
yq e -i '.storage.encryption_key = strenv(existing_storage_key)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
if [[ -n "$existing_redis_pass" && "$existing_redis_pass" != '""' && "$existing_redis_pass" != "null" ]]; then
|
||||
yq e -i '.session.redis.password = strenv(existing_redis_pass)' --env existing_redis_pass="$existing_redis_pass" "$TEMP_CONFIG"
|
||||
existing_redis_pass="$existing_redis_pass" \
|
||||
yq e -i '.session.redis.password = strenv(existing_redis_pass)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
if [[ -n "$existing_notifier" && "$existing_notifier" != '""' && "$existing_notifier" != "null" ]]; then
|
||||
yq e -i '.notifier = strenv(existing_notifier)' --env existing_notifier="$existing_notifier" "$TEMP_CONFIG"
|
||||
existing_notifier="$existing_notifier" \
|
||||
yq e -i '.notifier = strenv(existing_notifier)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Update domain settings from .env
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user