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

This commit is contained in:
ZJP Monitor
2025-07-14 12:23:33 +08:00
parent 1b642ff8d6
commit 0f92d8ac5b
4 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -92,10 +92,10 @@ cpus=$(expr $cores / 2)
if [ $cpus -lt 1 ]; then if [ $cpus -lt 1 ]; then
cpus="1" cpus="1"
fi fi
echo "use cpus:$cpus" #echo "use cpus:$cpus"
# --cpus $cpus \
docker run -d \ docker run -d \
--cpus $cpus \
--sysctl net.ipv6.conf.all.disable_ipv6=1 \ --sysctl net.ipv6.conf.all.disable_ipv6=1 \
--name embysim \ --name embysim \
-v $progdir/emby.config:/config \ -v $progdir/emby.config:/config \

View File

@ -20,10 +20,10 @@ progdir=$(pwd)
SCRIPT_NAME=$(basename "$0") SCRIPT_NAME=$(basename "$0")
# 检查是否有相同的脚本在运行(排除当前进程) # 检查是否有相同的脚本在运行(排除当前进程)
if pgrep -f "$SCRIPT_NAME" | grep -v "$$" > /dev/null; then #if pgrep -f "$SCRIPT_NAME" | grep -v "$$" > /dev/null; then
echo "脚本已在运行,退出..." # echo "脚本已在运行,退出..."
exit 1 # exit 1
fi #fi
if [ "$SELFIP" == "" ]; then if [ "$SELFIP" == "" ]; then
interface=$(ip route show | grep default | awk '{print $5}') interface=$(ip route show | grep default | awk '{print $5}')

Binary file not shown.