Skip to content
Browse files

updating restore with DIR usage.

  • Loading branch information...
1 parent 08a484c commit fe15fcab6d8a2d60821f101ac49d27c60e542334 @ibolmo committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 restore.sh
View
8 restore.sh
@@ -1,13 +1,15 @@
#!/bin/bash
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+
### Duplicity Setup ###
-if [ ! -f setup.sh ];
+if [ ! -f $DIR/setup.sh ];
then
echo "File setup.sh does not exist."
exit 1
fi
-source setup.sh
+source $DIR/setup.sh
### Env Vars ###
@@ -31,5 +33,5 @@ if [[ -z "$1" ]]; then
fi
if [ -n "$S3FILESYSLOCATION" ]; then
- $DUPLICITY $S3OPTIONS --name=files $EXTRADUPLICITYOPTIONS $S3FILESYSLOCATION $1
+ $DUPLICITY $S3OPTIONS $EXTRADUPLICITYOPTIONS $S3FILESYSLOCATION $1
fi

0 comments on commit fe15fca

Please sign in to comment.
Something went wrong with that request. Please try again.