fix: use sudo to remove root-owned config backup after upgrade

Backup is created with sudo cp (owned by root), so the cleanup rm -f
fails with "Operation not permitted" when run without sudo.

https://claude.ai/code/session_01EyjEQLWbTXcZgbMDarf7NU
This commit is contained in:
Claude
2026-06-16 00:39:53 +00:00
parent 3d5a5839b3
commit 543a442775
+1 -1
View File
@@ -11181,7 +11181,7 @@ upgrade_kiosk() {
if [[ -f "$config_backup" ]]; then
sudo cp "$config_backup" "$CONFIG_PATH"
sudo chown "$KIOSK_USER:$KIOSK_USER" "$CONFIG_PATH"
rm -f "$config_backup"
sudo rm -f "$config_backup"
fi
# Install simplified power button handler