RSYNC="rsync"
RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"
RSYNC_SSH_OPTIONS="ssh -o AddressFamily=inet -o BatchMode=yes"
LOGDIR="$HOME/logs"
RSYNC="rsync"
RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"
RSYNC_SSH_OPTIONS="ssh -o AddressFamily=inet -o BatchMode=yes"
LOGDIR="$HOME/logs"
-elif [ -e "${BASEDIR}${ACTIVE}" ] && [ "$(readlink "${BASEDIR}${ACTIVE}")" != "$BRAVO" ] ; then
- echo >&5 "Invalid state of ${BASEDIR}${ACTIVE}."
+elif [ -e "${COMPONENTDIR}${ACTIVE}" ] && [ "$(readlink "${COMPONENTDIR}${ACTIVE}")" != "$BRAVO" ] ; then
+ echo >&5 "Invalid state of ${COMPONENTDIR}${ACTIVE}."
if [ -e "$rsync_curactive/.serial" ] && [ -n "$SYNC_SERIAL" ] && [ "$(cat $rsync_curactive/.serial)" = "$SYNC_SERIAL" ]; then
log "active is already at serial $SYNC_SERIAL. No action required."
if [ -e "$rsync_curactive/.serial" ] && [ -n "$SYNC_SERIAL" ] && [ "$(cat $rsync_curactive/.serial)" = "$SYNC_SERIAL" ]; then
log "active is already at serial $SYNC_SERIAL. No action required."