Use full path to reprepro-import

This commit is contained in:
Nick Andrew 2014-11-16 23:42:47 +11:00
parent 8b84ef12e3
commit fce7331e56

View file

@ -28,13 +28,12 @@ chown -R user /home/user/.ssh
# load cron
CRONFILE=`mktemp`
cat > $CRONFILE <<EOF
* * * * * reprepro-import >> /var/log/reprepro.log
* * * * * /usr/local/sbin/reprepro-import >> /var/log/reprepro.log
EOF
crontab -u root $CRONFILE
rm -f $CRONFILE
# run import once, to create the right directory structure
reprepro-import
/usr/local/sbin/reprepro-import
supervisord -n