From f3aedd86fd14aad0a990f63d99bd5df3f5900ac0 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Mon, 16 Dec 2019 11:27:46 -0500 Subject: [PATCH] Update `AGENT_ALLOW_RUNASROOT` to `RUNNER_ALLOW_RUNASROOT` (#227) * Update config.sh * Update run.sh --- src/Misc/layoutroot/config.sh | 2 +- src/Misc/layoutroot/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Misc/layoutroot/config.sh b/src/Misc/layoutroot/config.sh index 6aa889013..116024596 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 diff --git a/src/Misc/layoutroot/run.sh b/src/Misc/layoutroot/run.sh index c874d8274..0dd186721 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