清空默认nginx配置文件

This commit is contained in:
hanhh 2021-08-02 19:07:45 +08:00
parent 43e02905c8
commit 2a9751e051

View File

@ -195,8 +195,8 @@ fix_config() {
fi
if [ -s /etc/nginx/conf.d/default.conf ]; then
echo -e "检测到默认nginx配置文件删除...\n"
rm -f /etc/nginx/conf.d/default.conf
echo -e "检测到默认nginx配置文件清空...\n"
echo '' > /etc/nginx/conf.d/default.conf
echo
fi
}