fix nginx can not run without /run/nginx (#944)

alpine3.12 和 alpine3.14 兼容性问题
This commit is contained in:
phoenix 2021-11-23 18:32:22 +08:00 committed by GitHub
parent fa018b84a7
commit 5a6d3739d4

View File

@ -6,6 +6,7 @@ link_shell
echo -e "======================1. 检测配置文件========================\n" echo -e "======================1. 检测配置文件========================\n"
make_dir /etc/nginx/conf.d make_dir /etc/nginx/conf.d
make_dir /run/nginx
cp -fv $nginx_conf /etc/nginx/nginx.conf cp -fv $nginx_conf /etc/nginx/nginx.conf
cp -fv $nginx_app_conf /etc/nginx/conf.d/front.conf cp -fv $nginx_app_conf /etc/nginx/conf.d/front.conf
pm2 l &>/dev/null pm2 l &>/dev/null