diff options
author | Simon Rettberg | 2014-10-13 11:50:40 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-13 11:50:40 +0200 |
commit | e203d6800e90f51947ce49f855cfa4b7f7709975 (patch) | |
tree | 7f6b0390dc15bfe9ad278de9f4d124b6522955db /scripts/mount-store | |
parent | Use SSL for AD-LDAP-connections (diff) | |
download | tmlite-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-x | scripts/mount-store | 9 |
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 |