aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-05 11:54:07 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-05 11:54:07 -0300
commitde36ed5b615ff4ff52a72617b2cffb0c8181b07a (patch)
tree24ef98779e2d833e1fc161d3067f31fd2c927af0 /share
parent255146a11ae1565a7392862294935c8e20e9faee (diff)
downloadhydra-de36ed5b615ff4ff52a72617b2cffb0c8181b07a.tar.gz
hydra-de36ed5b615ff4ff52a72617b2cffb0c8181b07a.tar.bz2
Fixing paths at site-pack
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/site-pack8
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"