Author: biurrun Date: Wed May 12 14:58:05 2010 New Revision: 2327 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: trunk/tools/pisa_autobuild.sh Modified: trunk/tools/pisa_autobuild.sh ============================================================================== --- trunk/tools/pisa_autobuild.sh Wed May 12 00:35:04 2010 (r2326) +++ trunk/tools/pisa_autobuild.sh Wed May 12 14:58:05 2010 (r2327) @@ -4,7 +4,7 @@ # This script relies on the following directory layout: # - $HOME/tmp/autobuild/pisa/ - 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 PISA_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. @@ -13,7 +13,7 @@ BUILD_DIR=$AUTOBUILD_DIR/pisa OPENWRT_DIR=$AUTOBUILD_DIR/openwrt SCRATCHBOX_DIR="/srv/power/scratchbox" -SCRATCHBOX_HOME=$SCRATCHBOX_DIR/users/$USER/home/$USER +SCRATCHBOX_HOME=$SCRATCHBOX_DIR/users/${LOGNAME}${HOME} PROJECT_DIR=/srv/projects/pisa PROJECT_BIN_DIR=$PROJECT_DIR/bin/autobuild