Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Werner
cx-custom-gitlab-runner
Commits
82ab7f8e
Commit
82ab7f8e
authored
Aug 03, 2021
by
Lukas Werner
Browse files
Fixed config.sh
parent
c0996671
Changes
1
Hide whitespace changes
Inline
Side-by-side
runner_scripts/root/config.sh
View file @
82ab7f8e
...
...
@@ -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."
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment