From bac48cd1834ad348dcb87b308255ca4cb92d48c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 23 Nov 2025 19:30:59 +0000 Subject: [PATCH] Fix jq command error in save_config and bump to v0.9.6-3 Fixed critical bug where jq command was incomplete in save_config function, causing configuration save to fail with jq usage error when configuring rotation sites. Issue: The jq -n command on lines 3476-3493 had all arguments but was missing the JSON template/filter, causing jq to output its help text instead of creating the config file. Fix: Added complete JSON object template to jq command with all required fields (unit, autoswitch, enableTouch, etc.) and empty tabs array. Version bumped from 0.9.6-2 to 0.9.6-3. --- ...osk_0.9.6-2.sh => install_kiosk_0.9.6-3.sh | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) rename install_kiosk_0.9.6-2.sh => install_kiosk_0.9.6-3.sh (99%) diff --git a/install_kiosk_0.9.6-2.sh b/install_kiosk_0.9.6-3.sh similarity index 99% rename from install_kiosk_0.9.6-2.sh rename to install_kiosk_0.9.6-3.sh index 364b7f9..2d72aae 100755 --- a/install_kiosk_0.9.6-2.sh +++ b/install_kiosk_0.9.6-3.sh @@ -3491,7 +3491,27 @@ save_config() { --arg lockoutActiveStart "${LOCKOUT_ACTIVE_START:-}" \ --arg lockoutActiveEnd "${LOCKOUT_ACTIVE_END:-}" \ --argjson requirePasswordOnBoot "$boot_password_json" \ - + '{ + unit: $unit, + autoswitch: $autoswitch, + enableTouch: $enableTouch, + dualSwipe: $dualSwipe, + swipeMode: $swipeMode, + allowNavigation: $allowNavigation, + homeTabIndex: $homeTabIndex, + inactivityTimeout: $inactivityTimeout, + enablePauseButton: $enablePauseButton, + enableKeyboardButton: $enableKeyboardButton, + enablePasswordProtection: $enablePasswordProtection, + lockoutPassword: $lockoutPassword, + lockoutTimeout: $lockoutTimeout, + lockoutAtTime: $lockoutAtTime, + lockoutActiveStart: $lockoutActiveStart, + lockoutActiveEnd: $lockoutActiveEnd, + requirePasswordOnBoot: $requirePasswordOnBoot, + tabs: [] + }' > "$tmp" + if [[ ${#URLS[@]} -gt 0 ]]; then for idx in "${!URLS[@]}"; do local url="${URLS[$idx]:-}"