Add 'scripts/gitearemove.sh'

This commit is contained in:
Sophia Atkinson 2022-10-18 22:17:44 -07:00
parent b2ac866d4b
commit 0581719da0
1 changed files with 17 additions and 0 deletions

17
scripts/gitearemove.sh Normal file
View File

@ -0,0 +1,17 @@
#!/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
sudo rm-rf /home/git
sudo userdel git
sudo rm -rf /usr/local/bin/gitea
sudo rm -rf /var/lib/gitea/*
sudo rm -rf /etc/gitea