Skip to content

Instantly share code, notes, and snippets.

@bouroo
Last active May 1, 2019 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouroo/fcdca141982882d9ad67aed8c8120cb6 to your computer and use it in GitHub Desktop.
Save bouroo/fcdca141982882d9ad67aed8c8120cb6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
RTM=$(curl https://packages.gitlab.com/gitlab/raspberry-pi2 | grep '\-ce.0_armhf.deb' | grep -o 'gitlab-[^"]*deb' | head -1)
curl -s https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash -
sed -i 's|debian|rasbian|g' /etc/apt/sources.list.d/gitlab_raspberry-pi2.list
wget -l https://packages.gitlab.com/gitlab/raspberry-pi2/packages/raspbian/jessie/${RTM}/download
dpkg -i ${RTM}
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment