From 2a9751e051bea01aca2fb230f337515a4646545f Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Mon, 2 Aug 2021 19:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E9=BB=98=E8=AE=A4nginx?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/share.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/share.sh b/shell/share.sh index aa9aedc6..9c6596d8 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -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 }