add gitea runner
This commit is contained in:
15
gitea_runner/uninstall.sh
Executable file
15
gitea_runner/uninstall.sh
Executable 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."
|
||||
Reference in New Issue
Block a user