Add 'scripts/gitlabuninstall.sh'
This commit is contained in:
parent
a74b0b4ee1
commit
dc2ee28ea7
23
scripts/gitlabuninstall.sh
Normal file
23
scripts/gitlabuninstall.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to uninstall Gitlab? This is not reversible. [Y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
break
|
||||
;;
|
||||
[nN][oO]|[nN])
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "That wasn't an option..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sudo apt remove gitlab-ce -y
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo ufw delete allow 443
|
||||
sudo ufw delete allow 80
|
Reference in New Issue
Block a user