]> gitweb.fluxo.info Git - hydra.git/commitdiff
Warn if pmwiki wasnt found
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 23:59:28 +0000 (20:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 23:59:28 +0000 (20:59 -0300)
share/hydractl/backup-site

index 4b68b7c2f421be4d59059a99ae25d36fdb6ffeae..817554acff28a2df403b3b9b46d4436d282197b4 100755 (executable)
@@ -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