summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 09:10:25 +0100
committerErich Eckner <git@eckner.net>2019-01-21 09:11:43 +0100
commit42ba782994b2dc269987160055a019c47e7c29f4 (patch)
tree8568464d3ef0817fef47041a1bdb16ef5c7747fb /backup.in
parentcfb15ec7f710ce339e0be988291b88ae5dcfa0d9 (diff)
downloadhardlinkedBackups-42ba782994b2dc269987160055a019c47e7c29f4.tar.xz
make needed mounts configurable
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/backup.in b/backup.in
index bfe3e61..3caf3ca 100755
--- a/backup.in
+++ b/backup.in
@@ -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