retired Gitlab
This commit is contained in:
@ -1,38 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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 wasn't an option..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo apt install tzdata curl ca-certificates openssh-server git -y
|
||||
gpg_key_url="https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey"
|
||||
curl -fsSL $gpg_key_url| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/gitlab.gpg
|
||||
sudo tee /etc/apt/sources.list.d/gitlab_gitlab-ce.list<<EOF
|
||||
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
|
||||
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
|
||||
EOF
|
||||
sudo apt update
|
||||
sudo apt install gitlab-ce
|
||||
sudo ufw allow https
|
||||
sudo ufw allow http
|
||||
sudo ufw allow ssh
|
||||
sudo ufw reload
|
||||
echo -e "=================================================================="
|
||||
echo "Congrats on installing GitLab Community Edition"
|
||||
echo "These are your login credentials, make sure to change them."
|
||||
echo "Username: root"
|
||||
cat /etc/gitlab/initial_root_password | grep Password:
|
||||
echo -e "=================================================================="
|
Reference in New Issue
Block a user