Merge pull request #64 from DDS-Derek/main

fix: start.sh 权限
This commit is contained in:
DDSDerek 2023-08-11 11:15:13 +08:00 committed by GitHub
commit e505f2d2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@ RUN apt-get update \
wget \
curl \
busybox \
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \
&& cp update /usr/local/bin/mp_update \
&& chmod +x /usr/local/bin/mp_update \
&& cp -f /app/nginx.conf /etc/nginx/nginx.template.conf \
&& cp /app/update /usr/local/bin/mp_update \
&& chmod +x /app/start.sh /usr/local/bin/mp_update \
&& mkdir -p ${HOME} \
&& groupadd -r moviepilot -g 911 \
&& useradd -r moviepilot -g moviepilot -d ${HOME} -s /bin/bash -u 911 \

View File

@ -4,7 +4,7 @@
envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
# 自动更新
if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then
mp_update
/usr/local/bin/mp_update
else
echo "程序自动升级已关闭如需自动升级请在创建容器时设置环境变量MOVIEPILOT_AUTO_UPDATE=true"
fi