forked from Sophia/thelinuxlist
Update 'scripts/gitlabinstall.sh'
This commit is contained in:
parent
171133189f
commit
c562e2b7d3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue