diff options
author | Simon Rettberg | 2015-09-18 17:11:21 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-18 17:11:21 +0200 |
commit | 14c261bc71f7adffb607d8762b185c4cef932393 (patch) | |
tree | 6ffe7510b2700c17c9f130b4d2b999205d997222 /scripts/mount-store | |
parent | minor changes (diff) | |
download | tmlite-bwlp-14c261bc71f7adffb607d8762b185c4cef932393.tar.gz tmlite-bwlp-14c261bc71f7adffb607d8762b185c4cef932393.tar.xz tmlite-bwlp-14c261bc71f7adffb607d8762b185c4cef932393.zip |
Update
Diffstat (limited to 'scripts/mount-store')
-rwxr-xr-x | scripts/mount-store | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mount-store b/scripts/mount-store index cd777a8..260b0c7 100755 --- a/scripts/mount-store +++ b/scripts/mount-store @@ -56,11 +56,17 @@ fi # Unmount and not requested to mount (local mode) if [[ "${SOURCE}" == "null" ]]; then rm -f "${FLAG}" + echo "Success. Now using internal storage." exit 0 fi touch "${FLAG}" +if [[ "${SOURCE}" == "unknown" ]]; then + echo "Storage type not configured, doing nothing." + exit 0 +fi + # Mount! if grep -E -q '^[^/].+:.+' <<<$SOURCE; then @@ -94,7 +100,8 @@ echo "----------------------------------" if [ "$RET" == "0" ]; then rm -f "${FLAG}" if [ -e "${FLAG}" ]; then - echo "Error: File '.notmounted' exists on remote storage. Delete first!" >&2 + echo "Error: File '.notmounted' exists on remote storage and could not be deleted." >&2 + echo "Error: Make sure the share is writable." >&2 umount -v "$DEST" exit 5 fi |