Commit c0996671 authored by Lukas Werner's avatar Lukas Werner
Browse files

Added auth user and key check back

parent e3b98641
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
set -euf -o pipefail set -euf -o pipefail
shopt -s inherit_errexit 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=$(runuser "$AUTH_USER" --login --command "echo \$WORK")
: "${AUTH_USER_WORK:?"Could not determine $AUTH_USER's \$WORK directory."}" : "${AUTH_USER_WORK:?"Could not determine $AUTH_USER's \$WORK directory."}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment