forked from Sophia/thelinuxlist
Add 'scripts/gitearemove.sh'
This commit is contained in:
parent
b2ac866d4b
commit
0581719da0
|
@ -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
|
Loading…
Reference in New Issue