retired Gitlab

This commit is contained in:
Sophia Atkinson 2023-04-18 19:09:49 -07:00
parent 7b6e136b88
commit cf97300af6
2 changed files with 5 additions and 41 deletions

View File

@ -8,6 +8,8 @@
### Untested Scripts ⚠️
### Retired Scripts 💀
---
## Gitea
@ -66,13 +68,13 @@
---
## Gitlab
## Gitlab (Retired, Now falls back to offical script)
### ✔️ Install
### 💀 Install
### `wget -O gitlabinstall.sh https://sop.wtf/sh/gitlabinstall && bash gitlabinstall.sh`
### ✔️ Uninstall
### 💀 Uninstall
### `wget -O gitlabuninstall.sh https://sop.wtf/sh/gitlabuninstall && bash gitlabuninstall.sh`

View File

@ -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 "=================================================================="