From: Silvio Rhatto Date: Sun, 9 Mar 2014 23:59:28 +0000 (-0300) Subject: Warn if pmwiki wasnt found X-Git-Tag: 0.2.2~60 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4929f0e5487243f23a736e1c2bc2cd76c4f6ba95;p=hydra.git Warn if pmwiki wasnt found --- 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