aboutsummaryrefslogtreecommitdiff
path: root/share/trashman/gitlab-runner/unix/linux/debian/install
diff options
context:
space:
mode:
Diffstat (limited to 'share/trashman/gitlab-runner/unix/linux/debian/install')
-rwxr-xr-xshare/trashman/gitlab-runner/unix/linux/debian/install6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/trashman/gitlab-runner/unix/linux/debian/install b/share/trashman/gitlab-runner/unix/linux/debian/install
index 3062f02..d16dec1 100755
--- a/share/trashman/gitlab-runner/unix/linux/debian/install
+++ b/share/trashman/gitlab-runner/unix/linux/debian/install
@@ -11,6 +11,12 @@ LIB="$2"
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian || exit 1
+# Check for an existing GitLab Runner installation
+if which gitlab-runner &> /dev/null; then
+ echo "GitLab Runner already installed, skipping"
+ exit
+fi
+
# Setup GitLab Debian repositories
# See https://docs.gitlab.com/runner/install/linux-repository.html
$SUDO $SHARE/gitlab-runner/unix/linux/debian/files/script.deb.sh