.
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-01-17 10:53:29 +00:00
parent 48d0407c79
commit e462edd99b
11 changed files with 268 additions and 599 deletions

View File

@@ -1,21 +1,21 @@
#!/usr/bin/env bash
#
# Uninstall host-side systemd services for cistech-tunnel
# Uninstall host-side systemd services for rego-tunnel
#
set -euo pipefail
echo "Removing cistech-tunnel host services..."
echo "Removing rego-tunnel host services..."
# Stop and disable the watcher
sudo systemctl stop cistech-routing-watcher.path 2>/dev/null || true
sudo systemctl disable cistech-routing-watcher.path 2>/dev/null || true
sudo systemctl stop rego-routing-watcher.path 2>/dev/null || true
sudo systemctl disable rego-routing-watcher.path 2>/dev/null || true
# Remove routing rules
/etc/runtipi/repos/runtipi/apps/cistech-tunnel/shared/host-routing.sh stop 2>/dev/null || true
/etc/runtipi/repos/runtipi/apps/rego-tunnel/shared/host-routing.sh stop 2>/dev/null || true
# Remove systemd units
sudo rm -f /etc/systemd/system/cistech-routing-watcher.path
sudo rm -f /etc/systemd/system/cistech-routing-watcher.service
sudo rm -f /etc/systemd/system/rego-routing-watcher.path
sudo rm -f /etc/systemd/system/rego-routing-watcher.service
# Reload systemd
sudo systemctl daemon-reload