fix: port conflict

This commit is contained in:
DDSRem
2023-09-09 10:44:05 +08:00
parent 933c6d838c
commit 0136d9fe06
5 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# 使用 `envsubst` 将模板文件中的 ${NGINX_PORT} 替换为实际的环境变量值
envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
envsubst '${NGINX_PORT}${PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
# 自动更新
if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then
cd /