Changes between Version 11 and Version 12 of S3QLBackup


Ignore:
Timestamp:
Nov 5, 2015, 11:02:35 AM (3 years ago)
Author:
chris
Comment:

endpoint check script updated

Legend:

Unmodified
Added
Removed
Modified
  • S3QLBackup

    v11 v12  
    231231S3QL_DISCONNECTED_ENDPOINTS=$(df 2>&1 | grep "Transport endpoint is not connected" | awk '{ print $2 }' | tr -d '‘' | tr -d '’:')
    232232if [[ "$S3QL_DISCONNECTED_ENDPOINTS" ]]; then
    233         for s3qlfs in $S3QL_DISCONNECTED_ENDPOINTS; do
    234                 fusermount -u -z "${s3qlfs}" && \
    235                   { echo "Success unmounting ${s3qlfs}" ; exit 0 ; } || \
    236                   { echo "Problem unmounting ${s3qlfs}, consider using: killall -9 mount.s3ql" ; exit 1 ; }
    237         done
     233  for s3qlfs in $S3QL_DISCONNECTED_ENDPOINTS; do
     234    if fusermount -u -z "${s3qlfs}" ; then
     235      echo "Success unmounting ${s3qlfs}"
     236      exit 0
     237    else
     238      echo "Problem unmounting ${s3qlfs}, consider using: killall -9 mount.s3ql"
     239      exit 1
     240    fi
     241  done
    238242fi
    239243}}}