diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-09 20:59:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-09 20:59:28 -0300 |
commit | 4929f0e5487243f23a736e1c2bc2cd76c4f6ba95 (patch) | |
tree | adb34842790d9822e15dc047cc70ea942c84fafb | |
parent | d862dfc31efdc28f41beac0844319dfc4f1da5d3 (diff) | |
download | hydra-4929f0e5487243f23a736e1c2bc2cd76c4f6ba95.tar.gz hydra-4929f0e5487243f23a736e1c2bc2cd76c4f6ba95.tar.bz2 |
Warn if pmwiki wasnt found
-rwxr-xr-x | share/hydractl/backup-site | 5 |
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 |