diff options
Diffstat (limited to 'backup.in')
-rwxr-xr-x | backup.in | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -76,7 +76,11 @@ if [ -n "${HoppIP}" ]; then fi if [ ! -d ${Basis} ]; then - [ $(mount | grep -c "\S\+\s\+\S\+\s\+/var/ftp\s") -eq 0 ] && exit 11 + for neededMount in "${neededMounts[@]}"; do + if ! mountpoint -q "${neededMount}"; then + exit 11 + fi + done exit 2 fi |