diff options
-rwxr-xr-x | share/hydractl/site-pack | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydractl/site-pack b/share/hydractl/site-pack index 6e33dfd..ce6d232 100755 --- a/share/hydractl/site-pack +++ b/share/hydractl/site-pack @@ -13,16 +13,16 @@ PACK="$1.tar.bz2" if [ -z "$SITE" ]; then hydra_action_usage exit 1 -elif [ ! -d "$SITE" ]; then +elif [ ! -d "$SITES/$SITE" ]; then echo "No such site $SITE" exit 1 fi -mkdir -p $SITES/backups -cd $SITES/backups +mkdir -p $SITES/backups/$SITE +cd $SITES/backups/$SITE tar jcvf $PACK $SITES/$SITE md5sum $PACK > $PACK.md5 sha1sum $PACK > $PACK.sha1 -echo "Saved $SITES/backups/$PACK" +echo "Saved $SITES/backups/$SITE/$PACK" |