Update 'scripts/gitlabinstall.sh'

This commit is contained in:
Sophia Atkinson 2022-10-20 10:59:42 -07:00
parent 171133189f
commit c562e2b7d3
1 changed files with 15 additions and 7 deletions

View File

@ -1,13 +1,21 @@
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to install Gitlab? (y/n) " go
while true
do
read -r -p "Would you like to install Gitlab? [Y/n] " input
case $input in
[yY][eE][sS]|[yY])
break
;;
[nN][oO]|[nN])
break
;;
*)
echo "That wasnt an option"
;;
esac
done
if [ "$go" == 'n' ]; then
exit
fi
sudo apt update && apt upgrade -y
sudo apt install tzdata curl ca-certificates openssh-server -y
gpg_key_url="https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey"