]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixup! fixup! tests/packaging/interactive/rpz_watchdog.sh: configure RPZ using json docs-develop-mana-5v912y/deployments/6440 manager-api-config-fix
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 21 Mar 2025 13:11:58 +0000 (14:11 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 21 Mar 2025 13:11:58 +0000 (14:11 +0100)
tests/packaging/interactive/rpz_watchdog.sh

index ab0dbf92c09b89148699d84c8352807f9f026ed2..950f89039b32239d4e079cf0f91209f3a5b8e40c 100755 (executable)
@@ -14,10 +14,12 @@ EOF
 echo "$rpz_example" >> $rpz_file
 
 rpz_conf=$(cat <<EOF
-{[
+{
+  "rpz": [{
     "file": "$rpz_file",
     "watchdog": false,
-]}
+  }]
+}
 EOF
 )
 
@@ -36,7 +38,7 @@ err_count=$(count_errors)
 rel_count=$(count_reloads)
 
 # configure RPZ without files watchdog
-kresctl config set -p /local-dat/rpz "$rpz_conf"
+kresctl config set -p /local-dat "$rpz_conf"
 sleep 1
 if [ $(count_errors) -ne $err_count ] || [ $(count_reloads) -ne $rel_count ]; then
     echo "RPZ file watchdog is running (should not) or other errors occurred."