浏览代码

fix cron job by escaping the sub-command so it is executed not already on startup

Ralf S. Engelschall 22 年之前
父节点
当前提交
965ee0774c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      rsync/rc.rsync
  2. 1 1
      rsync/rsync.spec

+ 1 - 1
rsync/rc.rsync

@@ -44,7 +44,7 @@
         shtool rotate -f \
             -n ${rsync_log_numfiles} -s ${rsync_log_minsize} \
             -d -z ${rsync_log_complevel} -o @l_musr@ -g @l_mgrp@ -m 644 \
-            -E "test -f $rsync_pidfile && kill -TERM `cat $rsync_pidfile`; sleep 2; \
+            -E "test -f $rsync_pidfile && kill -TERM \`cat $rsync_pidfile\`; sleep 2; \
                 nice -n $rsync_nicelevel @l_prefix@/bin/rsync $rsync_flags --daemon --config=$rsync_cfgfile" \
             $rsync_logfile
     fi

+ 1 - 1
rsync/rsync.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
 Group:        Filesystem
 License:      GPL
 Version:      2.5.6
-Release:      20030328
+Release:      20030527
 
 #   list of sources
 Source0:      http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz