From 1cbd8053686062056833657ecafbb9285a6a1a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 14 May 2024 16:41:39 +0200 Subject: [PATCH] WebDAV rclone: shell formatting --- webdav-rclone-sidecar/mount.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webdav-rclone-sidecar/mount.sh b/webdav-rclone-sidecar/mount.sh index 23d2073..b9d0532 100755 --- a/webdav-rclone-sidecar/mount.sh +++ b/webdav-rclone-sidecar/mount.sh @@ -10,14 +10,14 @@ JOVYAN_GRP=${JOVYAN_GRP:-100} VFS_CACHE_MODE=${VFS_CACHE_MODE:-full} if [ ! -d "$MOUNT_PATH" ]; then - mkdir -p "$MOUNT_PATH" - chown "$JOVYAN_UID:$JOVYAN_GRP" "$MOUNT_PATH" + mkdir -p "$MOUNT_PATH" + chown "$JOVYAN_UID:$JOVYAN_GRP" "$MOUNT_PATH" fi # wait to be killed -do_umount () { - fusermount3 -u -z "$MOUNT_PATH" - exit $? +do_umount() { + fusermount3 -u -z "$MOUNT_PATH" + exit $? } trap "do_umount" INT @@ -37,6 +37,6 @@ rclone config create --non-interactive webdav-fs webdav "${args[@]}" "$@" # uid: unix owner # gid: unix group # vfs-cache-mode: random access and cache -IFS=" " read -r -a mount_opts <<< "$MOUNT_OPTS" +IFS=" " read -r -a mount_opts <<<"$MOUNT_OPTS" mount_opts+=("--vfs-cache-mode=$VFS_CACHE_MODE") rclone mount webdav-fs:/ "$MOUNT_PATH" --allow-non-empty --allow-other --uid="$JOVYAN_UID" --gid="$JOVYAN_GRP" "${mount_opts[@]}"