fix(update-authelia): Use proper yq syntax since walk() does not exist like in jq
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:
parent
93e709841b
commit
79a7a0d4c6
@ -301,11 +301,11 @@ update_authelia_config() {
|
|||||||
# 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}"
|
||||||
|
|
||||||
# Replace placeholder full hostname
|
# Replace placeholder full hostname - using proper yq syntax instead of walk()
|
||||||
yq e -i "walk(if type == \"string\" and . == \"tailscale-nas.your-tailnet.ts.net\" then \"${FULL_HOSTNAME}\" else . end)" "$TEMP_CONFIG"
|
yq e -i "(.. | select(tag == \"!!str\" and . == \"tailscale-nas.your-tailnet.ts.net\")) = \"${FULL_HOSTNAME}\"" "$TEMP_CONFIG"
|
||||||
|
|
||||||
# Replace placeholder tailnet domain
|
# Replace placeholder tailnet domain - using proper yq syntax instead of walk()
|
||||||
yq e -i "walk(if type == \"string\" and . == \"your-tailnet.ts.net\" then \"${TAILNET_DOMAIN}\" else . end)" "$TEMP_CONFIG"
|
yq e -i "(.. | select(tag == \"!!str\" and . == \"your-tailnet.ts.net\")) = \"${TAILNET_DOMAIN}\"" "$TEMP_CONFIG"
|
||||||
|
|
||||||
# Move temp file to final location
|
# Move temp file to final location
|
||||||
mv "$TEMP_CONFIG" "$AUTHELIA_CONFIG"
|
mv "$TEMP_CONFIG" "$AUTHELIA_CONFIG"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user