From 4929f0e5487243f23a736e1c2bc2cd76c4f6ba95 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 9 Mar 2014 20:59:28 -0300 Subject: Warn if pmwiki wasnt found --- share/hydractl/backup-site | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share') 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 -- cgit v1.2.3