pve-gui-sensors-auto/package/usr/local/sbin/pve-gui-sensors-uninstall
2026-08-01 19:37:20 +01:00

12 lines
318 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
WORK_DIR="/var/lib/pve-gui-sensors-auto/upstream"
INSTALLER="$WORK_DIR/pve-mod-gui-sensors.sh"
if [[ ! -x "$INSTALLER" ]]; then
echo "No saved upstream installer exists. Run a refresh first." >&2
exit 1
fi
cd "$WORK_DIR"
bash "$INSTALLER" uninstall
systemctl restart pveproxy