aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-28 00:32:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-28 00:32:11 -0300
commit50bb1ee8cc98fe26900491df6e215290b4d6c21a (patch)
tree5d9e62078a1bd76da2cb715cf98b58319c221b6c /share
parenta941c42c8c3d7d4d6921260b40fed92debfc9632 (diff)
downloadhydra-50bb1ee8cc98fe26900491df6e215290b4d6c21a.tar.gz
hydra-50bb1ee8cc98fe26900491df6e215290b4d6c21a.tar.bz2
Minor fix
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-restore-site2
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