more usability feedback

This commit is contained in:
Anthony Young 2011-11-09 11:10:26 -08:00
parent 79a20a01df
commit 316117a5a2

View file

@ -44,6 +44,14 @@ EOF
# Set ownership to jenkins
chown -R jenkins $CUR_DIR
# Make sure this directory is accessible to jenkins
if ! su -c "ls $CUR_DIR" jenkins; then
echo "Your devstack directory is not accessible by jenkins."
echo "There is a decent chance you are trying to run this from a directory in /root."
echo "If so, try moving devstack elsewhere (eg. /opt/devstack)."
exit 1
fi
# Set up jobs symlink
if [ ! -h /var/lib/jenkins/jobs ]; then
echo "Installing jobs symlink"