From e01c2c9d4cba80556dd1cd46ed09018ed5b80cf6 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 1 Jul 2012 05:55:16 -0700 Subject: [PATCH] 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 --- modules/pypimirror/files/pull-repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pypimirror/files/pull-repo.sh b/modules/pypimirror/files/pull-repo.sh index 9730ff8ac5..58aa9e618c 100644 --- a/modules/pypimirror/files/pull-repo.sh +++ b/modules/pypimirror/files/pull-repo.sh @@ -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