Changeset e9724ed


Ignore:
Timestamp:
02/28/14 05:19:07 (7 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
cfc1c4f
Parents:
4b65ed1
Message:

If the user enabled replication, and then disabled it at a later time, resume
usual snapshot pruning.

File:
1 edited

Legend:

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

    r37adeaf re9724ed  
    7474     year="`echo $lastSend | cut -d '-' -f 2`" 
    7575     sendEpoc=`date -j -f "%Y %m %d %H %M %S" "$year $mon $day $hour $min $sec" "+%s"` 
     76     # Check that this replication target is still active 
     77     if [ -e "$REPCONF" ] ; then 
     78       cat ${REPCONF} | grep -q "^${LDATA}:" 
     79       if [ $? -ne 0 ] ; then 
     80          unset lastSEND 
     81          unset sendEpoc 
     82       fi 
     83     fi 
    7684  fi 
    7785 
Note: See TracChangeset for help on using the changeset viewer.