Files
pve-cloud-backups/scripts/uninstall.sh
T
2026-07-15 01:00:08 +02:00

19 lines
590 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
INSTALL_DIR="/opt/pve-cloud-backup"
if [[ "$(id -u)" -ne 0 ]]; then
echo "Run as root." >&2
exit 1
fi
systemctl disable --now pve-cloud-backup-worker.service 2>/dev/null || true
systemctl disable --now pve-cloud-backup-web.service 2>/dev/null || true
rm -f /etc/systemd/system/pve-cloud-backup-worker.service
rm -f /etc/systemd/system/pve-cloud-backup-web.service
systemctl daemon-reload
echo "Services removed."
echo "Application data remains at $INSTALL_DIR. Remove it manually only after confirming backups and app.db are no longer needed."