Fix path for cron-based run.

pull-repo.sh is run from /usr/local/mirror_scripts/run-mirror.sh
which is run from cron. cron is not setting /usr/local/bin in the
path - so pip isn't found.

Change-Id: I31f8b5837204d38d0371db59a1a03b8bd49b508a
This commit is contained in:
Monty Taylor 2012-07-01 05:55:16 -07:00
parent b9f7630c24
commit e01c2c9d4c

View File

@ -6,7 +6,7 @@ export PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-/var/cache/pip}
export PIP_TEMP_DOWNLOAD=${PIP_TEMP_DOWNLOAD:-/var/lib/pip-download}
project=$1
pip_command='pip install -M -U -I --exists-action=w --no-install'
pip_command='/usr/local/bin/pip install -M -U -I --exists-action=w --no-install'
cd ${PIP_TEMP_DOWNLOAD}
if [ ! -d ${project} ] ; then