added install script and uninstall script

This commit is contained in:
2025-07-24 02:38:07 -05:00
parent 32ccdd2275
commit caadde94db
3 changed files with 86 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
set -e
SERVICE_NAME="sentryx"
SERVICE_FILE="/etc/systemd/system/$SERVICE_NAME.service"
INSTALL_DIR="$HOME/sentryx"
echo "Stopping and disabling systemd service..."
sudo systemctl stop "$SERVICE_NAME.service" || true
sudo systemctl disable "$SERVICE_NAME.service" || true
echo "Removing systemd service file..."
sudo rm -f "$SERVICE_FILE"
echo "Reloading systemd daemon..."
sudo systemctl daemon-reload
echo "Removing installation directory..."
rm -rf "$INSTALL_DIR"
rm -rf "${INSTALL_DIR}-backup"
echo "Uninstall complete."