更新文件: rclonemount.sh

This commit is contained in:
ZJP Monitor
2025-07-02 21:54:37 +08:00
parent 186dee884e
commit 9fec7f26f2

View File

@ -44,12 +44,11 @@ if [ $? -eq 0 ]; then
echo "WARN:webdavsim is running, data may be outdate." echo "WARN:webdavsim is running, data may be outdate."
else else
echo "run webdavsim..." echo "run webdavsim..."
chmod u+x tmuxrunwebdavsim.sh
tmux -V tmux -V
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
chmod u+x tmuxrunwebdavsim.sh
./tmuxrunwebdavsim.sh ./tmuxrunwebdavsim.sh
else else
chmod u+x tmuxrunwebdavsim.sh
nohup ./runwebdavsim.sh >/dev/null 2>&1 & nohup ./runwebdavsim.sh >/dev/null 2>&1 &
fi fi
fi fi
@ -80,7 +79,8 @@ if [ "$webdavsimok" != "1" ]; then
fi fi
echo "ready to rclone mount, please wait...(abount 60s)" 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" echo "mount ok"
interface=$(ip route show | grep default | awk '{print $5}') interface=$(ip route show | grep default | awk '{print $5}')