Files
Your Name 22ca6f07d4
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 34s
attempt to add squash stuff. Tailscale works!
2025-09-07 23:11:01 +12:00

37 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME"
# Squash Display Uninstallation Script
echo "Uninstalling Squash Display service..."
echo ""
echo "WARNING: This will remove the Docker container but will NOT undo"
echo "the system-level changes made during installation, including:"
echo " - Installed packages (Chromium, X server, etc.)"
echo " - Auto-login configuration"
echo " - Kiosk scripts in /home/${KIOSK_USER}/"
echo " - System service configurations"
echo ""
echo "To fully remove the kiosk setup, you would need to manually:"
echo " 1. Remove auto-login: sudo rm /etc/systemd/system/getty@tty1.service.d/autologin.conf"
echo " 2. Remove kiosk scripts: rm /home/${KIOSK_USER}/kiosk.sh /home/${KIOSK_USER}/watchdog.sh"
echo " 3. Re-enable updates: sudo systemctl enable apt-daily.service apt-daily.timer"
echo " 4. Remove HDMI service: sudo systemctl disable hdmi-keep-alive.service"
echo ""
# Stop the container if it's running
if _is_container_running "$CONTAINER_NAME"; then
echo "Stopping Squash Display container..."
_stop_container "$CONTAINER_NAME"
fi
# Remove the container
if _is_container_exists "$CONTAINER_NAME"; then
echo "Removing Squash Display container..."
_remove_container "$CONTAINER_NAME"
fi
echo "Squash Display container has been uninstalled."
echo "Note: System configurations remain in place. See above for manual removal steps."