nixos/pihole-ftl: fix setup script to add allow and block lists (#501100)

This commit is contained in:
Sandro
2026-05-19 21:57:49 +00:00
committed by GitHub
@@ -41,7 +41,8 @@ in
local payload="$1"
echo "Adding list: $payload"
local result=$(PostFTLData "lists" "$payload")
local type=$($jq -r '.type' <<< "$payload")
local result=$(PostFTLData "lists?type=$type" "$payload")
local error="$($jq '.error' <<< "$result")"
if [[ "$error" != "null" ]]; then