#!/bin/bash base_url=https://packages.gitlab.com/install/repositories/gitlab/gitlab- if [[ -z "$EDITION" || -z "$VERSION" ]]; then cat << EOF ERROR: must set EDITION and VERSION. EDITION can be "ce" or "ee" VERSION might be 9.1.2 EOF exit 1 fi curl -s $base_url$EDITION/script.deb.sh | bash apt-get install gitlab-${EDITION}=${VERSION}-${EDITION}.0 gitlab-ctl reconfigure exec bash