summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO.md3
-rwxr-xr-xshare/hydractl/backup-restore-site1
2 files changed, 4 insertions, 0 deletions
diff --git a/TODO.md b/TODO.md
index 0d4933a..56c7fc1 100644
--- a/TODO.md
+++ b/TODO.md
@@ -11,3 +11,6 @@ Hydractl
- provision: config parser using a custom function with `include` directive, avoiding `source`.
- puppet-setup-stored: configure storeconfigs database.
+ - site backup, copy and restoration: include home folder when available?
+ - backup-restore-user and backup-restore-users.
+ - hydractl {backup,restore}-site {debian,wiki}.
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index 064e8e3..4224f45 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -162,6 +162,7 @@ if [ -e "$FOLDER/ikiwiki" ]; then
site="`basename $file .setup`"
git clone file:///var/git/repositories/$SITE /var/sites/$SITE/ikiwiki_src
ikiwiki --setup $file --rebuild
+ chown -R $SITE_USER.$SITE_GROUP /var/sites/$SITE/ikiwiki*
else
echo "Either $file or git repository not found for $SITE ikiwiki instance"
fi