diff options
Diffstat (limited to 'share/hydractl/backup-restore-site')
-rwxr-xr-x | share/hydractl/backup-restore-site | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site index 81de76d..a408a11 100755 --- a/share/hydractl/backup-restore-site +++ b/share/hydractl/backup-restore-site @@ -105,7 +105,7 @@ fi if [ -e "$FOLDER/ikiwiki" ]; then echo "Restoring ikiwiki for $SITE..." file="/etc/ikiwiki/$SITE.setup" - if [ -e "$file" ] && [ -e "/var/git/repositories/$SITE" ]; then + if [ -e "$file" ] && [ -e "/var/git/repositories/$SITE.git" ]; then site="`basename $file .setup`" git clone file:///var/git/repositories/$SITE /var/sites/$SITE/ikiwiki_src ikiwiki --setup $file --rebuild |