#!/bin/bash # This script is used to uninstall Gitea act_runner . ./env.sh if systemctl --user list-units --full --all | grep -q "${SERVICE_NAME}.service"; then systemctl --user stop "${SERVICE_NAME}.service" fi systemctl --user disable --now "${SERVICE_NAME}.service" rm "$USER_SYSTEMD/${SERVICE_NAME}.service" systemctl --user daemon-reload echo "Uninstall complete. Manually remove data directory - $INSTALL_DIR if needed."