fix: start.sh 权限

This commit is contained in:
DDSRem 2023-08-11 11:09:27 +08:00
parent 4d626e5ed3
commit 8ecba2b1e8
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@ RUN apt-get update \
wget \ wget \
curl \ curl \
busybox \ busybox \
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \ && cp -f /app/nginx.conf /etc/nginx/nginx.template.conf \
&& cp update /usr/local/bin/mp_update \ && cp /app/update /usr/local/bin/mp_update \
&& chmod +x /usr/local/bin/mp_update \ && chmod +x /app/start.sh /usr/local/bin/mp_update \
&& mkdir -p ${HOME} \ && mkdir -p ${HOME} \
&& groupadd -r moviepilot -g 911 \ && groupadd -r moviepilot -g 911 \
&& useradd -r moviepilot -g moviepilot -d ${HOME} -s /bin/bash -u 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 envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
# 自动更新 # 自动更新
if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then
mp_update /usr/local/bin/mp_update
else else
echo "程序自动升级已关闭如需自动升级请在创建容器时设置环境变量MOVIEPILOT_AUTO_UPDATE=true" echo "程序自动升级已关闭如需自动升级请在创建容器时设置环境变量MOVIEPILOT_AUTO_UPDATE=true"
fi fi