更新文件: runembysim.sh, embysim.tar.xz

This commit is contained in:
ZJP Monitor
2025-07-05 00:37:54 +08:00
parent d372156d48
commit 10ed9b2da1
2 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,13 @@ url=$(cat rclone.conf |grep -E "^url"|sed -e 's/.*\(http.*\)/\1/'|head -1)
echo "get webdav url from rclone:$url"
curl -v -L $url
if [ $? -eq 0 ]; then
echo "WARN:webdavsim is running, data may be outdate."
iswebdavsim=$(curl -v -L $url -o - 2>&1|grep "Path-Based WebDAV Server"|wc -l)
if [ $iswebdavsim -gt 0 ]; then
echo "WARN:webdavsim is running, data may be outdate."
else
echo "ERROR: $url is NOT WebDAVSim, exit"
exit
fi
else
echo "run webdavsim..."
chmod u+x tmuxrunwebdavsim.sh