Changes between Version 6 and Version 7 of S3QLBackup


Ignore:
Timestamp:
Oct 15, 2015, 9:52:09 AM (3 years ago)
Author:
chris
Comment:

Path fix

Legend:

Unmodified
Added
Removed
Modified
  • S3QLBackup

    v6 v7  
    2929# mount directory for sshfs file systems
    3030SSHFS_MOUNT="/media/sshfs"
     31# directory where the scripts this script depends on are located
     32SCRIPT_DIR="/usr/local/bin"
    3133
    3234# check the $S3QL_MOUNT directory exists
     
    6466if [[ -d "$SSHFS_SOURCE" ]]; then
    6567  # mount the sshfs
    66   mnt-sshfs $BUCKET && \
     68  $SCRIPT_DIR/mnt-sshfs $BUCKET && \
    6769  echo "Success mounting $SSHFS_MOUNT/$BUCKET" || \
    6870{ echo "Problem mounting $SSHFS_SOURCE" ; exit 1 ; }
     
    7577if [[ -d "$S3QL_MOUNT/$BUCKET" ]]; then
    7678  # mount the s3ql directory
    77   mnt-s3ql $BUCKET  && \
     79  $SCRIPT_DIR/mnt-s3ql $BUCKET  && \
    7880  echo "Success mounting $S3QL_MOUNT/$BUCKET" || \
    7981{ echo "Problem mounting $S3QL_MOUNT/$BUCKET" ; exit 1 ; }
     
    8486
    8587# The following two commands are commented out as the mnt-s3ql script covers
    86 # this and is run via cron before this script is run
     88# this
    8789
    8890# Recover cache if e.g. system was shut down while fs was mounted