add gitea runner

This commit is contained in:
2025-05-21 19:07:12 +00:00
parent 80dafbbce2
commit aeeb045439
4 changed files with 106 additions and 0 deletions

15
gitea_runner/uninstall.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/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."