--- recepies/smart/dump.sh 2011/09/14 23:36:10 274 +++ recepies/smart/dump.sh 2011/09/17 11:05:51 276 @@ -1,7 +1,8 @@ -#!/bin/sh -e +#!/bin/sh -# cron -# */30 * * * * /mnt/smart/dump.sh +if [ ! -e /etc/cron.d/smart ] ; then + echo '*/30 * * * * /srv/sysadmin-cookbook/recepies/smart/dump.sh' > /etc/cron.d/smart +fi cd /srv/sysadmin-cookbook/recepies/smart # awk '{ if ( $3 >= 2930266584 ) print $4 }'