From c09966717a2911b2ae8460491b5d6cc4cbd40040 Mon Sep 17 00:00:00 2001
From: Lukas Werner <lks.werner@fau.de>
Date: Tue, 3 Aug 2021 09:02:38 +0200
Subject: [PATCH] Added auth user and key check back

---
 runner_scripts/root/config.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/runner_scripts/root/config.sh b/runner_scripts/root/config.sh
index 0f5e727..c1d54cc 100755
--- a/runner_scripts/root/config.sh
+++ b/runner_scripts/root/config.sh
@@ -2,6 +2,9 @@
 set -euf -o pipefail
 shopt -s inherit_errexit
 
+: "${CUSTOM_ENV_AUTH_USER:?"AUTH_USER CI/CD variable has not been set."}"
+: "${CUSTOM_ENV_AUTH_KEY:?"AUTH_KEY secret CI/CD variable has not been set."}"
+
 AUTH_USER_WORK=$(runuser "$AUTH_USER" --login --command "echo \$WORK")
 
 : "${AUTH_USER_WORK:?"Could not determine $AUTH_USER's \$WORK directory."}"
-- 
GitLab