feat: optimize restart update
This commit is contained in:
10
entrypoint
10
entrypoint
@ -3,13 +3,9 @@
|
||||
# 使用 `envsubst` 将模板文件中的 ${NGINX_PORT} 替换为实际的环境变量值
|
||||
envsubst '${NGINX_PORT}${PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
|
||||
# 自动更新
|
||||
if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then
|
||||
cd /
|
||||
/usr/local/bin/mp_update
|
||||
cd /app
|
||||
else
|
||||
echo "程序自动升级已关闭,如需自动升级请在创建容器时设置环境变量:MOVIEPILOT_AUTO_UPDATE=true"
|
||||
fi
|
||||
cd /
|
||||
/usr/local/bin/mp_update
|
||||
cd /app
|
||||
# 更改 moviepilot userid 和 groupid
|
||||
groupmod -o -g ${PGID} moviepilot
|
||||
usermod -o -u ${PUID} moviepilot
|
||||
|
Reference in New Issue
Block a user