Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 12/05/2010 at 15:57:04 Revision: 4498 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Use LOGNAME instead of USER environment variable. LOGNAME is present even in very minimal restricted environments, like for example the environment available to jobs started by cron. Modified: M tools/hipl_autobuild.sh === modified file 'tools/hipl_autobuild.sh' --- tools/hipl_autobuild.sh 2010-05-12 12:29:33 +0000 +++ tools/hipl_autobuild.sh 2010-05-12 12:55:53 +0000 @@ -7,7 +7,7 @@ # - $HOME/src/hipl/<branch> - location for HIPL <branch> to be tested # - $HOME/tmp/autobuild/hipl/ - temporary build directory # - $HOME/tmp/autobuild/openwrt - working OpenWrt tree -# - /srv/power/scratchbox/users/${USER}${HOME]} - working scratchbox environment +# - /srv/power/scratchbox/users/${LOGNAME}${HOME]} - working scratchbox environment # # If the HIPL_NOTIFICATION_EMAIL environment variable is set to a suitable value # for the user running this script, then email will be sent in case of failure. @@ -23,7 +23,7 @@ BUILD_DIR=$AUTOBUILD_DIR/hipl OPENWRT_DIR=$AUTOBUILD_DIR/openwrt SCRATCHBOX_DIR="/srv/power/scratchbox" -SCRATCHBOX_HOME=$SCRATCHBOX_DIR/users/${USER}${HOME} +SCRATCHBOX_HOME=$SCRATCHBOX_DIR/users/${LOGNAME}${HOME} BUILD_DIR=$HOME/tmp/autobuild/hipl BRANCH_URL=$HOME/src/hipl/$BRANCH_NAME