aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-git
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-08 18:08:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-08 18:08:00 -0300
commitf38543090ddb792adb5be7af5946c87b28a8ac32 (patch)
tree962cb12e250585e96adef1af5e73014236a800b3 /share/hydractl/backup-restore-git
parentcb732a2470cf9fce851a2bce376a2f2ca032f5af (diff)
downloadhydra-f38543090ddb792adb5be7af5946c87b28a8ac32.tar.gz
hydra-f38543090ddb792adb5be7af5946c87b28a8ac32.tar.bz2
Adding backup-restore-puppet and minor backup fixes
Diffstat (limited to 'share/hydractl/backup-restore-git')
-rwxr-xr-xshare/hydractl/backup-restore-git5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/hydractl/backup-restore-git b/share/hydractl/backup-restore-git
index f338993..29a4598 100755
--- a/share/hydractl/backup-restore-git
+++ b/share/hydractl/backup-restore-git
@@ -34,7 +34,7 @@ hydra_backup_environment_service
# TODO: directly at hydra_backup_environment_service
hydractl backup-site $SERVICE
-# Remove current folder
+# Remove current folder.
rm -rf $SERVICE_DIR
# Copy site folder from backup.
@@ -42,3 +42,6 @@ cp -a $RESTOREDIR/$SERVICE_DIR $SERVICE_DIR
# Fix permissions.
chown -R $SERVICE_USER.$SERVICE_GROUP $SERVICE_DIR
+
+# Kick config.
+su $SERVICE_USER -c "gl-setup"