From 082b56789ed3440c9a8f6c7db1548c4d5eaf0860 Mon Sep 17 00:00:00 2001 From: Nick Andrew Date: Sun, 16 Nov 2014 23:44:19 +1100 Subject: [PATCH] Set the crontab directly Saves a temporary file when the HERE-document is already a temp file. --- scripts/start.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 8dcf580..56b15af 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -25,13 +25,10 @@ for key in /docker/keys/*.pub ; do done chown -R user /home/user/.ssh -# load cron -CRONFILE=`mktemp` -cat > $CRONFILE <> /var/log/reprepro.log EOF -crontab -u root $CRONFILE -rm -f $CRONFILE # run import once, to create the right directory structure /usr/local/sbin/reprepro-import