This repository has been archived on 2024-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
thelinuxlist/scripts/gitearemove.sh

20 lines
395 B
Bash
Raw Normal View History

2022-10-18 22:17:44 -07:00
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to uninstall Gitea? This is not reversible. (y/n) " go
done
if [ "$go" == 'n' ]; then
exit
fi
sudo systemctl stop gitea
sudo systemctl disable gitea
2022-10-18 22:19:35 -07:00
sudo rm -rf /home/git
2022-10-18 22:17:44 -07:00
sudo userdel git
sudo rm -rf /usr/local/bin/gitea
sudo rm -rf /var/lib/gitea/*
sudo rm -rf /etc/gitea
2022-10-19 21:30:50 -07:00
sudo ufw delete allow 3000