aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-09 20:59:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-09 20:59:28 -0300
commit4929f0e5487243f23a736e1c2bc2cd76c4f6ba95 (patch)
treeadb34842790d9822e15dc047cc70ea942c84fafb /share
parentd862dfc31efdc28f41beac0844319dfc4f1da5d3 (diff)
downloadhydra-4929f0e5487243f23a736e1c2bc2cd76c4f6ba95.tar.gz
hydra-4929f0e5487243f23a736e1c2bc2cd76c4f6ba95.tar.bz2
Warn if pmwiki wasnt found
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-site5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydractl/backup-site b/share/hydractl/backup-site
index 4b68b7c..817554a 100755
--- a/share/hydractl/backup-site
+++ b/share/hydractl/backup-site
@@ -42,6 +42,11 @@ elif [ "$SITE" == "debian" ]; then
LOCATION="/var/reprepro"
elif [ "$SITE" == "wiki" ]; then
LOCATION="/var/www/data/`ls -1 /var/www/data | grep pmwiki | sort -n | head`"
+
+ if [ "$LOCATION" == "/var/www/data" ]; then
+ echo "PmWiki installation not found at /var/www/data."
+ exit 1
+ fi
else
LOCATION="$SITES/$SITE"
fi