From dc2ee28ea79732e9a8ebac69a58ef1325b95deb7 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Thu, 20 Oct 2022 11:14:35 -0700 Subject: [PATCH] Add 'scripts/gitlabuninstall.sh' --- scripts/gitlabuninstall.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/gitlabuninstall.sh diff --git a/scripts/gitlabuninstall.sh b/scripts/gitlabuninstall.sh new file mode 100644 index 0000000..0e6c8d7 --- /dev/null +++ b/scripts/gitlabuninstall.sh @@ -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 \ No newline at end of file