Skip to content
Snippets Groups Projects
Verified Commit 994bb27f authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

Support file:// URI for "remote" storage

Basically just alias for local://, but pointed out that some people
might try it intuitively although it should be pointing to a directory
and not a file.
parent c055c8f6
No related branches found
Tags v6.0.1
No related merge requests found
Pipeline #116347 passed
......@@ -721,8 +721,8 @@ remote_mount() {
[ -n "`which sshfs`" ] || die "sshfs is not available"
sshfs "$FINAL_REMOTE_URL" "$TMP_RMT_MNT_DIR" || die "Can't access remote filesystem"
;;
local://*)
FINAL_REMOTE_URL="$(echo "$REMOTE_URL" | sed -e 's|local://*|/|')"
local://*|file://*)
FINAL_REMOTE_URL="$(echo "$REMOTE_URL" | sed -e 's|^local://*|/|' -e 's|^file://*|/|')"
mount -o bind "$FINAL_REMOTE_URL" "$TMP_RMT_MNT_DIR" || die "Can't bind-mount local filesystem"
;;
smb:*|cifs:*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment