From 82ab7f8e2daa2beb6e8ef754cae913c53871f4fd Mon Sep 17 00:00:00 2001 From: Lukas Werner <lks.werner@fau.de> Date: Tue, 3 Aug 2021 09:04:10 +0200 Subject: [PATCH] Fixed config.sh --- runner_scripts/root/config.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runner_scripts/root/config.sh b/runner_scripts/root/config.sh index c1d54cc..ae14a9c 100755 --- a/runner_scripts/root/config.sh +++ b/runner_scripts/root/config.sh @@ -5,6 +5,8 @@ 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=$CUSTOM_ENV_AUTH_USER + AUTH_USER_WORK=$(runuser "$AUTH_USER" --login --command "echo \$WORK") : "${AUTH_USER_WORK:?"Could not determine $AUTH_USER's \$WORK directory."}" -- GitLab