Compare commits
4 Commits
feature/tr
...
f9531228d6
| Author | SHA1 | Date | |
|---|---|---|---|
| f9531228d6 | |||
| 9b1d42cea1 | |||
|
|
4b519610af | ||
| b58a0346d1 |
@@ -296,16 +296,18 @@ update_authelia_config() {
|
||||
existing_notifier="$existing_notifier" \
|
||||
yq e -i '.notifier = strenv(existing_notifier)' "$TEMP_CONFIG"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Update domain settings from .env
|
||||
echo -e "${BLUE}Applying Tailscale domain settings...${NC}"
|
||||
|
||||
# Replace placeholder full hostname - using proper yq syntax instead of walk()
|
||||
yq e -i "(.. | select(tag == \"!!str\" and . == \"tailscale-nas.your-tailnet.ts.net\")) = \"${FULL_HOSTNAME}\"" "$TEMP_CONFIG"
|
||||
if command -v yq &> /dev/null; then
|
||||
# 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"
|
||||
|
||||
# Replace placeholder tailnet domain - using proper yq syntax instead of walk()
|
||||
yq e -i "(.. | select(tag == \"!!str\" and . == \"your-tailnet.ts.net\")) = \"${TAILNET_DOMAIN}\"" "$TEMP_CONFIG"
|
||||
# Replace placeholder tailnet domain
|
||||
yq e -i "walk(if type == \"string\" and . == \"your-tailnet.ts.net\" then \"${TAILNET_DOMAIN}\" else . end)" "$TEMP_CONFIG"
|
||||
|
||||
# Move temp file to final location
|
||||
mv "$TEMP_CONFIG" "$AUTHELIA_CONFIG"
|
||||
@@ -333,6 +335,7 @@ update_authelia_config() {
|
||||
echo -e "${CYAN} docker compose restart authelia${NC}"
|
||||
}
|
||||
|
||||
|
||||
##################################################
|
||||
# PART 3: Update service configurations
|
||||
##################################################
|
||||
|
||||
Reference in New Issue
Block a user