更新文件: README.txt, system.xml, runwebdavsim.sh, rclonemount.sh, install.sh 等7个文件
This commit is contained in:
@ -37,6 +37,20 @@ interface=$(ip route show | grep default | awk '{print $5}')
|
||||
export SELFIP=$(ip addr show $interface | grep -w inet | awk '{print $2}' | cut -d/ -f1|head -1)
|
||||
echo "DETECT SELF IP:${SELFIP}, if this is not correct, change SELFIP to your real ip"
|
||||
|
||||
curl -v -L $url
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "WARN:webdavsim is running, data may be outdate."
|
||||
else
|
||||
echo "run webdavsim..."
|
||||
chmod u+x tmuxrunwebdavsim.sh
|
||||
tmux -V
|
||||
if [ $? -eq 0 ]; then
|
||||
./tmuxrunwebdavsim.sh
|
||||
else
|
||||
nohup ./runwebdavsim.sh >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
|
||||
num=$(mount |grep "/rclone.media"|wc -l)
|
||||
if [ $num -gt 0 ]; then
|
||||
echo "WARN: rclone.media already mounted, the webdav content may be outdate"
|
||||
@ -56,7 +70,15 @@ fi
|
||||
# -e HTTPS_PROXY=http://192.168.101.1:8118 \
|
||||
# --net=host \
|
||||
|
||||
cores=$(cat /proc/cpuinfo |grep processor|wc -l)
|
||||
cpus=$(expr $cores / 2)
|
||||
if [ $cpus -lt 1 ]; then
|
||||
cpus="1"
|
||||
fi
|
||||
echo "use cpus:$cpus"
|
||||
|
||||
docker run -d \
|
||||
--cpus $cpus \
|
||||
--sysctl net.ipv6.conf.all.disable_ipv6=1 \
|
||||
--name embysim \
|
||||
-v $progdir/emby.config:/config \
|
||||
|
Reference in New Issue
Block a user