From a75561399d5cc4e127ccdb97bc36a87fa1b3b5f4 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Mon, 27 Sep 2021 22:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=85=E7=A9=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/share.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shell/share.sh b/shell/share.sh index 17227aae..f722f8bf 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -205,7 +205,7 @@ fix_config() { if [ -s /etc/nginx/conf.d/default.conf ]; then echo -e "检测到默认nginx配置文件,清空...\n" - echo '' > /etc/nginx/conf.d/default.conf + cat /dev/null > /etc/nginx/conf.d/default.conf echo fi } @@ -322,5 +322,4 @@ detect_macos define_cmd fix_config -echo '' > $task_error_log_path -import_config $1 >> $task_error_log_path 2>&1 +import_config $1 > $task_error_log_path 2>&1