更新文件: rclonemount.sh
This commit is contained in:
@ -44,12 +44,11 @@ if [ $? -eq 0 ]; then
|
||||
echo "WARN:webdavsim is running, data may be outdate."
|
||||
else
|
||||
echo "run webdavsim..."
|
||||
chmod u+x tmuxrunwebdavsim.sh
|
||||
tmux -V
|
||||
if [ $? -eq 0 ]; then
|
||||
chmod u+x tmuxrunwebdavsim.sh
|
||||
./tmuxrunwebdavsim.sh
|
||||
else
|
||||
chmod u+x tmuxrunwebdavsim.sh
|
||||
nohup ./runwebdavsim.sh >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
@ -80,7 +79,8 @@ if [ "$webdavsimok" != "1" ]; then
|
||||
fi
|
||||
|
||||
echo "ready to rclone mount, please wait...(abount 60s)"
|
||||
rclone --config rclone.conf mount webdavsim-nas:/dav external/rclone.media --daemon --daemon-wait 60s --no-check-certificate --allow-other --umask 000 --default-permissions --dir-cache-time 1h --webdav-vendor rclone --vfs-cache-mode writes --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 1G --buffer-size 64M --vfs-cache-max-age 1h --vfs-cache-max-size 10G --timeout 1800s --contimeout 10s --daemon-timeout 300s --poll-interval 1s --low-level-retries 2 --cache-dir rclone.cache --log-file rclone.log
|
||||
#rclone --config rclone.conf mount webdavsim-nas:/dav external/rclone.media --daemon --daemon-wait 60s --no-check-certificate --allow-other --umask 000 --default-permissions --dir-cache-time 1h --webdav-vendor rclone --vfs-cache-mode writes --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 1G --buffer-size 64M --vfs-cache-max-age 1h --vfs-cache-max-size 10G --timeout 1800s --contimeout 10s --daemon-timeout 300s --poll-interval 10s --low-level-retries 2 --cache-dir rclone.cache --log-file rclone.log
|
||||
rclone --config rclone.conf mount webdavsim-nas:/dav external/rclone.media --daemon --daemon-wait 60s --no-check-certificate --allow-other --umask 000 --default-permissions --dir-cache-time 1h --webdav-vendor rclone --vfs-cache-mode off --timeout 1800s --contimeout 10s --daemon-timeout 300s --poll-interval 10s --low-level-retries 2 --log-file rclone.log
|
||||
echo "mount ok"
|
||||
|
||||
interface=$(ip route show | grep default | awk '{print $5}')
|
||||
|
Reference in New Issue
Block a user