diff --git a/runner_scripts/root/config.sh b/runner_scripts/root/config.sh index c1d54cc3f8fb3ffab87e6589627133ce61735421..ae14a9ca67562b5e3957ace7d897a40f991e1285 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."}"