diff --git a/livekitlib b/livekitlib index 32e225c..15ecc1f 100644 --- a/livekitlib +++ b/livekitlib @@ -396,7 +396,7 @@ mount_data_http() CACHE=$(cmdline_value cache | sed -r "s/[^0-9]//g" | sed -r "s/^0+//g") if [ "$CACHE" != "" ]; then - CACHE="-S "$(($CACHE*1024*1024)) + CACHE="-C /tmp/httpfs.cache -S "$(($CACHE*1024*1024)) fi init_network_ip @@ -404,7 +404,7 @@ mount_data_http() if [ "$(network_device)" != "" ]; then echo "* Mounting remote file..." >&2 mkdir -p "$2" - mount.httpfs2 -r 9999 -t 5 -C /tmp/httpfs.cache $CACHE -c /dev/null "$1" "$2" >/dev/null 2>/dev/null + mount.httpfs2 -r 9999 -t 5 $CACHE -c /dev/null "$1" "$2" >/dev/null 2>/dev/null mount -o loop "$2"/* "$2" # self mount echo "$2/$LIVEKITNAME" fi