更新文件: runembysim.sh, embysim.tar.xz
This commit is contained in:
BIN
embysim.tar.xz
BIN
embysim.tar.xz
Binary file not shown.
@ -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"
|
echo "get webdav url from rclone:$url"
|
||||||
curl -v -L $url
|
curl -v -L $url
|
||||||
if [ $? -eq 0 ]; then
|
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
|
else
|
||||||
echo "run webdavsim..."
|
echo "run webdavsim..."
|
||||||
chmod u+x tmuxrunwebdavsim.sh
|
chmod u+x tmuxrunwebdavsim.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user