Update seedbox-mount

de70bca3a3beb3df250a0dfd43139f1427928f99
Alexis Sellier committed ago 1 parent c9b2f574
bin/seedbox-mount +17 -10
1 1
#!/bin/sh
2 2
3 3
uid="$(id -u $USER)"
4 4
gid="$(id -g $USER)"
5 5
6 -
mountpoint=${MOUNTPOINT-/home/plex}
7 -
mkdir -p $mountpoint
6 +
mountpoint=${MOUNTPOINT-/home/plex/gemini}
7 +
mkdir -p $mountpoint 2>/dev/null
8 8
9 9
fusermount -u $mountpoint 2>/dev/null
10 10
11 -
sshfs $SEEDBOX_URI \
12 -
	"$mountpoint" \
13 -
	-oumask=555   \
14 -
	-ogid="$gid"  \
15 -
	-oallow_other \
16 -
	-oauto_cache  \
17 -
	-ouid="$uid"  \
18 -
	-oreconnect,ServerAliveInterval=15,ServerAliveCountMax=3,Compression=no,Cipher=arcfour
11 +
sshfs $SEEDBOX_URI           \
12 +
	"$mountpoint"              \
13 +
	-oumask=555                \
14 +
	-ogid="$gid"               \
15 +
	-ouid="$uid"               \
16 +
	-oreconnect                \
17 +
	-oallow_other              \
18 +
	-ocache=yes                \
19 +
	-okernel_cache             \
20 +
	-olarge_read               \
21 +
	-omax_readahead=1048576    \
22 +
	-oCipher=arcfour           \
23 +
	-oCompression=yes          \
24 +
	-oServerAliveInterval=15   \
25 +
	-oServerAliveCountMax=3    \