更新文件: README.txt, runwebdavsim.sh, rclonemount.sh, webdav_simulator.amd64, alistservers.template.txt 等8个文件
This commit is contained in:
@ -14,6 +14,7 @@ while [ -h "${prog}" ]; do
|
||||
done
|
||||
progdir=`dirname "${prog}"`
|
||||
cd "${progdir}"
|
||||
progdir=$(pwd)
|
||||
|
||||
mkdir -p emby.tmp emby.cache >/dev/null 2>&1
|
||||
chmod 777 emby.tmp emby.cache
|
||||
@ -27,16 +28,26 @@ if [ $num -lt 1 ]; then
|
||||
echo "mount emby.external to external to mark shared"
|
||||
fi
|
||||
|
||||
if [ ! -e alistservers.txt ]; then
|
||||
cp alistservers.template.txt alistservers.txt
|
||||
fi
|
||||
|
||||
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"
|
||||
|
||||
num=$(mount |grep "/rclone.media"|wc -l)
|
||||
if [ $num -gt 0 ]; then
|
||||
echo "WARN: rclone.media already mounted, the webdav content may be outdate"
|
||||
else
|
||||
./rclonemount.sh &
|
||||
./rclonemount.sh
|
||||
fi
|
||||
|
||||
interface=$(ip route show | grep default | awk '{print $5}')
|
||||
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"
|
||||
num=$(mount |grep "/rclone.media"|wc -l)
|
||||
if [ $num -lt 1 ]; then
|
||||
echo "ERROR: rclone not running, exit"
|
||||
exit
|
||||
fi
|
||||
|
||||
# --gpus all \
|
||||
# -e HTTP_PROXY=http://192.168.101.1:8118 \
|
||||
@ -53,7 +64,6 @@ docker run -d \
|
||||
--device /dev/dri:/dev/dri \
|
||||
-p 8096:8096 \
|
||||
-p 8920:8920 \
|
||||
-p 5678:5678 \
|
||||
--env UID=1000 \
|
||||
--env GID=100 \
|
||||
--env GIDLIST=100 \
|
||||
|
Reference in New Issue
Block a user