Fix PATH in pypi-mirror cron job
The PATH in pypi-mirror's cron job was the system default, which does not have /usr/local/bin. Because of this, we weren't finding run-mirror and failing every time. Change-Id: I657e8a97232cc63e5d7f34d989e51ab9bec1da6e
This commit is contained in:
parent
2b6837c109
commit
057e0622b1
|
@ -46,5 +46,6 @@ chmod a+rx /var/cache/pypi-mirror
|
|||
|
||||
cat <<EOF > /etc/cron.d/pypi-mirror-update
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
15 * * * * pypi-mirror run-mirror -b remotes/origin/master --verbose -c /etc/pypi-mirror/mirror.yaml
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue