summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/backup-restore-site4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index bf68779..16ebf93 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -8,7 +8,7 @@
source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
-SITE="$3"
+SITE="$2"
SITES="/var/sites"
FOLDER="$SITES/$SITE"
@@ -17,7 +17,7 @@ if [ -z "$SITE" ]; then
exit 1
fi
-hydra_backup_environment $*
+hydra_backup_environment $1 restore
# Check if folder exist on the backup
if [ ! -d "$RESTOREDIR/$FOLDER" ]; then