mirror of
https://git.coolaj86.com/coolaj86/gitea-installer.sh.git
synced 2024-11-20 12:34:40 +00:00
13 lines
496 B
Bash
13 lines
496 B
Bash
# Gitea Uninstall Script
|
|
# This script removes Gitea as installed by this script. THIS DELTES ALL DATA if you are using SQLite.
|
|
|
|
echo "Removing Gitea and DELETING ALL DATA."
|
|
|
|
sudo systemctl stop gitea # Stop the Gitea service
|
|
sudo systemctl disable gitea # Disable the Gitea service automatically starting on boot.
|
|
sudo rm /etc/systemd/system/gitea.service # Delete the Gitea service.
|
|
sudo rm /usr/local/bin/gitea # Remove Gitea from Path
|
|
sudo rm -rf /opt/gitea # Remove Gitea Data
|
|
|
|
echo "Done."
|