Commit 2a78495f authored by Heinz N. Gies's avatar Heinz N. Gies Committed by GitHub

Merge pull request #20 from dataloop/fix-sudoed-home

Make sudo set user HOME folder when changing user
parents 36328bd1 f24801cd
......@@ -13,7 +13,7 @@ RUNNER_USER={{run_user}}
# Make sure this script is running as the appropriate user
if [ ! -z "$RUNNER_USER" ] && [ `whoami` != "$RUNNER_USER" ]; then
exec sudo -u $RUNNER_USER $0 $@
exec sudo -H -u $RUNNER_USER $0 $@
fi
# Make sure CWD is set to runner base dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment