summaryrefslogtreecommitdiffstats
path: root/scripts/mount-store
diff options
context:
space:
mode:
authorSimon Rettberg2014-10-13 11:50:40 +0200
committerSimon Rettberg2014-10-13 11:50:40 +0200
commite203d6800e90f51947ce49f855cfa4b7f7709975 (patch)
tree7f6b0390dc15bfe9ad278de9f4d124b6522955db /scripts/mount-store
parentUse SSL for AD-LDAP-connections (diff)
downloadtmlite-bwlp-e203d6800e90f51947ce49f855cfa4b7f7709975.tar.gz
tmlite-bwlp-e203d6800e90f51947ce49f855cfa4b7f7709975.tar.xz
tmlite-bwlp-e203d6800e90f51947ce49f855cfa4b7f7709975.zip
Added Dozmod and Syncdaemon launcher
Also added forgotten Exec class, tweaked mount-store script too
Diffstat (limited to 'scripts/mount-store')
-rwxr-xr-xscripts/mount-store9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/mount-store b/scripts/mount-store
index 4251926..5842d23 100755
--- a/scripts/mount-store
+++ b/scripts/mount-store
@@ -80,6 +80,15 @@ if [ "$RET" == "0" ]; then
for DIR in $(find "$DEST" -type d); do
chmod ug+x "$DIR" 2>/dev/null
done
+ TEST="$DEST/.test-$RAND-$RAND"
+ sudo -n -u bwlehrpool touch "$TEST"
+ RET=$?
+ if [ -e "$TEST" ]; then
+ sudo -n -u bwlehrpool rm -f "$TEST"
+ else
+ echo "Error: Mounted share is not writable, aborting." >&2
+ umount -v "$DEST"
+ fi
fi
exit $RET