From 462986445f99e7aab9d0e9eafc14d47eeb5c1b77 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Mon, 16 Dec 2019 11:13:22 -0500 Subject: [PATCH 1/2] Update config.sh --- src/Misc/layoutroot/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Misc/layoutroot/config.sh b/src/Misc/layoutroot/config.sh index 6aa8890130b..11602459644 100755 --- a/src/Misc/layoutroot/config.sh +++ b/src/Misc/layoutroot/config.sh @@ -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 From f706edc7178ed57c09c440fbbe410501cac910dd Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Mon, 16 Dec 2019 11:18:07 -0500 Subject: [PATCH 2/2] Update run.sh --- src/Misc/layoutroot/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Misc/layoutroot/run.sh b/src/Misc/layoutroot/run.sh index c874d8274b4..0dd186721fe 100755 --- a/src/Misc/layoutroot/run.sh +++ b/src/Misc/layoutroot/run.sh @@ -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