diff options
Diffstat (limited to 'share')
-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 |