Skip to content

Commit

Permalink
Make sure sudo sets correct $HOME (required for Ubuntu 16.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstax committed Sep 8, 2017
1 parent 7a532f9 commit 8334b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rel/common/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUNNER_USER=${RUNNER_USER:-leofs}

# Make sure this script is running as the appropriate user
if [ ! -z "$RUNNER_USER" ] && [ `whoami` != "$RUNNER_USER" ]; then
exec sudo -u $RUNNER_USER "$RUNNER_SCRIPT_DIR/$SCRIPT" "$@"
exec sudo -H -u $RUNNER_USER "$RUNNER_SCRIPT_DIR/$SCRIPT" "$@"
fi

# Make sure CWD is set to runner base dir
Expand Down

0 comments on commit 8334b8f

Please sign in to comment.