Ignore:
Timestamp:
12/06/13 10:03:07 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
17aac6e
Parents:
7a84a28
Message:

Fix displaying correct lpreserver cron times when doing multiple pools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/zfslistcron.sh

    r1e93fd8 r2b45e58  
    1616for i in `grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $8}'` 
    1717do 
    18    min=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $1}'` 
    19    hour=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $2}'` 
    20    count=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $9}'` 
     18   min=`grep "${PROGDIR}/backend/runsnap.sh ${i}" /etc/crontab | awk '{print $1}'` 
     19   hour=`grep "${PROGDIR}/backend/runsnap.sh ${i}" /etc/crontab | awk '{print $2}'` 
     20   count=`grep "${PROGDIR}/backend/runsnap.sh ${i}" /etc/crontab | awk '{print $9}'` 
    2121   time="Min: $min Hour: $hour"; 
    2222   if [ "$min" = "0" -a "$hour" != '*' ] ; then time="daily@$hour" ; fi 
Note: See TracChangeset for help on using the changeset viewer.