Install gitea with systemd

remove.sh 788B

1234567891011121314151617181920
  1. # Gitea Uninstall Script
  2. # This script removes Gitea as installed by this script. THIS DELTES ALL DATA if you are using SQLite.
  3. echo "Removing Gitea and DELETING ALL DATA."
  4. echo "Stopping and removing the Gitea service."
  5. sudo systemctl stop gitea # Stop the Gitea service
  6. sudo systemctl disable gitea # Disable the Gitea service automatically starting on boot.
  7. sudo rm /etc/systemd/system/gitea.service # Delete the Gitea service.
  8. echo "Deleting Gitea configuration and Data."
  9. sudo rm /usr/local/bin/gitea # Remove Gitea from Path
  10. sudo rm -rf /opt/gitea # Remove Gitea Data
  11. if test ! -d /opt/gitea
  12. echo "Gitea has been completely removed."
  13. else
  14. echo "Gitea has not been completely removed. File an issue here: https://git.coolaj86.com/coolaj86/gitea-installer.sh/issues/new"
  15. fi