更新文件: run.sh

This commit is contained in:
ZJP Monitor
2025-05-13 15:04:07 +08:00
parent a2c758f2e6
commit c251ad9e70

18
run.sh
View File

@ -1,3 +1,21 @@
#!/bin/bash #!/bin/bash
prog="$0"
while [ -h "${prog}" ]; do
newProg=`/bin/ls -ld "${prog}"`
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
if expr "x${newProg}" : 'x/' >/dev/null; then
prog="${newProg}"
else
progdir=`dirname "${prog}"`
prog="${progdir}/${newProg}"
fi
done
progdir=`dirname "${prog}"`
cd "${progdir}"
mkdir tmp
chmod 777 tmp
export TMPDIR=tmp
./webdav_simulator.amd64 --alist_config "http://192.168.1.2:5678,,#http://192.168.1.3:5678,alist-1234-5678," xy115-2.txt ./webdav_simulator.amd64 --alist_config "http://192.168.1.2:5678,,#http://192.168.1.3:5678,alist-1234-5678," xy115-2.txt