Skip to content
Snippets Groups Projects
Commit c0996671 authored by Lukas Werner's avatar Lukas Werner
Browse files

Added auth user and key check back

parent e3b98641
No related branches found
No related tags found
No related merge requests found
...@@ -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."}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment