Update AGENT_ALLOW_RUNASROOT to RUNNER_ALLOW_RUNASROOT (#227)

* Update config.sh

* Update run.sh
This commit is contained in:
Tingluo Huang
2019-12-16 11:27:46 -05:00
committed by GitHub
parent d778f13dee
commit f3aedd86fd
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
user_id=`id -u`
# we want to snapshot the environment of the config user
if [ $user_id -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then
if [ $user_id -eq 0 -a -z "$RUNNER_ALLOW_RUNASROOT" ]; then
echo "Must not run with sudo"
exit 1
fi

View File

@@ -2,7 +2,7 @@
# Validate not sudo
user_id=`id -u`
if [ $user_id -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then
if [ $user_id -eq 0 -a -z "$RUNNER_ALLOW_RUNASROOT" ]; then
echo "Must not run interactively with sudo"
exit 1
fi