更新文件: README.txt, system.xml, runwebdavsim.sh, rclonemount.sh, install.sh 等7个文件

This commit is contained in:
ZJP Monitor
2025-07-04 07:09:59 +08:00
parent 6e5d3ed2ad
commit 05f15727c5
7 changed files with 110 additions and 23 deletions

View File

@ -39,20 +39,6 @@ if [ "$SELFIP" == "" ]; then
echo "DETECT SELF IP:${SELFIP}, if this is not correct, change SELFIP to your real ip"
fi
curl -v -L $url
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
./tmuxrunwebdavsim.sh
else
nohup ./runwebdavsim.sh >/dev/null 2>&1 &
fi
fi
echo "TRY CONNECT webdavsim, please wait... abount(30s)"
webdavsimok="0"
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
@ -81,11 +67,15 @@ 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 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"
if [ $? -eq 0 ]; then
echo "mount ok"
else
echo "ERROR:rclone mount fail"
fi
interface=$(ip route show | grep default | awk '{print $5}')
SELFIP=$(ip addr show $interface | grep -w inet | awk '{print $2}' | cut -d/ -f1|head -1)
echo "DETECT SELF IP:${SELFIP}, if this is not correct, change SELFIP to your real ip"
#interface=$(ip route show | grep default | awk '{print $5}')
#SELFIP=$(ip addr show $interface | grep -w inet | awk '{print $2}' | cut -d/ -f1|head -1)
#echo "DETECT SELF IP:${SELFIP}, if this is not correct, change SELFIP to your real ip"
if [ "$SELFIP" != "" ]; then
if [ ! -e config.selfip.modified.dat ]; then