Compare commits

..

1 Commits

Author SHA1 Message Date
aki
9ac533865d fix(update-setup): Improve Authelia configuration update logic and replace placeholders
Some checks failed
/ validate-docker-compose (push) Has been cancelled
2025-04-26 20:27:19 +08:00

View File

@ -296,13 +296,11 @@ update_authelia_config() {
existing_notifier="$existing_notifier" \ existing_notifier="$existing_notifier" \
yq e -i '.notifier = strenv(existing_notifier)' "$TEMP_CONFIG" yq e -i '.notifier = strenv(existing_notifier)' "$TEMP_CONFIG"
fi fi
fi fi
# Update domain settings from .env # Update domain settings from .env
echo -e "${BLUE}Applying Tailscale domain settings...${NC}" echo -e "${BLUE}Applying Tailscale domain settings...${NC}"
if command -v yq &> /dev/null; then
# Replace placeholder full hostname # Replace placeholder full hostname
yq e -i "walk(if type == \"string\" and . == \"tailscale-nas.your-tailnet.ts.net\" then \"${FULL_HOSTNAME}\" else . end)" "$TEMP_CONFIG" yq e -i "walk(if type == \"string\" and . == \"tailscale-nas.your-tailnet.ts.net\" then \"${FULL_HOSTNAME}\" else . end)" "$TEMP_CONFIG"
@ -335,7 +333,6 @@ update_authelia_config() {
echo -e "${CYAN} docker compose restart authelia${NC}" echo -e "${CYAN} docker compose restart authelia${NC}"
} }
################################################## ##################################################
# PART 3: Update service configurations # PART 3: Update service configurations
################################################## ##################################################