aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-git
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-08 13:30:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-08 13:30:50 -0300
commit5544fa8f188821500f764cc559111047d745c9e4 (patch)
tree281a19df9efd8987c3c5973a9d901ba09735c67b /share/hydractl/backup-restore-git
parentbb074824423eac7904974711fe8886c1d6361703 (diff)
downloadhydra-5544fa8f188821500f764cc559111047d745c9e4.tar.gz
hydra-5544fa8f188821500f764cc559111047d745c9e4.tar.bz2
Adding other backup restoration scripts
Diffstat (limited to 'share/hydractl/backup-restore-git')
-rwxr-xr-xshare/hydractl/backup-restore-git4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/backup-restore-git b/share/hydractl/backup-restore-git
index 928f357..f6c8b64 100755
--- a/share/hydractl/backup-restore-git
+++ b/share/hydractl/backup-restore-git
@@ -32,10 +32,10 @@ hydra_backup_environment_service
# Backup it.
# TODO: directly at hydra_backup_environment_service
-hydractl backup-site git
+hydractl backup-site $SERVICE
# Copy site folder from backup.
cp -a $RESTOREDIR/$SERVICE_DIR $SERVICE_DIR
# Fix permissions.
-chown -R $GIT_USER.$GIT_GROUP $SERVICE_DIR
+chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR