更新文件: runwebdavsim.sh, webdav_simulator.amd64, runembysim.sh, embysim.tar.xz
This commit is contained in:
BIN
embysim.tar.xz
BIN
embysim.tar.xz
Binary file not shown.
@ -92,10 +92,10 @@ cpus=$(expr $cores / 2)
|
||||
if [ $cpus -lt 1 ]; then
|
||||
cpus="1"
|
||||
fi
|
||||
echo "use cpus:$cpus"
|
||||
#echo "use cpus:$cpus"
|
||||
# --cpus $cpus \
|
||||
|
||||
docker run -d \
|
||||
--cpus $cpus \
|
||||
--sysctl net.ipv6.conf.all.disable_ipv6=1 \
|
||||
--name embysim \
|
||||
-v $progdir/emby.config:/config \
|
||||
|
||||
@ -20,10 +20,10 @@ progdir=$(pwd)
|
||||
SCRIPT_NAME=$(basename "$0")
|
||||
|
||||
# 检查是否有相同的脚本在运行(排除当前进程)
|
||||
if pgrep -f "$SCRIPT_NAME" | grep -v "$$" > /dev/null; then
|
||||
echo "脚本已在运行,退出..."
|
||||
exit 1
|
||||
fi
|
||||
#if pgrep -f "$SCRIPT_NAME" | grep -v "$$" > /dev/null; then
|
||||
# echo "脚本已在运行,退出..."
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
if [ "$SELFIP" == "" ]; then
|
||||
interface=$(ip route show | grep default | awk '{print $5}')
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user