Use full path to reprepro-import
This commit is contained in:
parent
8b84ef12e3
commit
fce7331e56
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue