更新文件: 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
|
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 \
|
||||||
|
|||||||
@ -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.
Reference in New Issue
Block a user