Skip to content

Commit f3aedd8

Browse files
authored
Update AGENT_ALLOW_RUNASROOT to RUNNER_ALLOW_RUNASROOT (#227)
* Update config.sh * Update run.sh
1 parent d778f13 commit f3aedd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Misc/layoutroot/config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
user_id=`id -u`
44

55
# we want to snapshot the environment of the config user
6-
if [ $user_id -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then
6+
if [ $user_id -eq 0 -a -z "$RUNNER_ALLOW_RUNASROOT" ]; then
77
echo "Must not run with sudo"
88
exit 1
99
fi

src/Misc/layoutroot/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Validate not sudo
44
user_id=`id -u`
5-
if [ $user_id -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then
5+
if [ $user_id -eq 0 -a -z "$RUNNER_ALLOW_RUNASROOT" ]; then
66
echo "Must not run interactively with sudo"
77
exit 1
88
fi

0 commit comments

Comments
 (0)