sudo su -- jenkins if running as root.

This commit is contained in:
Daniel Nichter
2012-12-07 14:18:06 -07:00
parent fb3149b8be
commit 9ab8b33724

View File

@@ -21,7 +21,12 @@ util/check-dev-env
#########################
# Check the system env. #
#########################
if [ "$(id -u)" = "0" ]; then
sudo su -- jenkins
fi
env
if [ -z "$HOME" ]; then
if [ -d "/home/jenkins" ]; then
HOME="/home/jenkins"