修复清空文件操作

This commit is contained in:
hanhh 2021-09-27 22:04:47 +08:00
parent fa02df0d8f
commit a75561399d

View File

@ -205,7 +205,7 @@ fix_config() {
if [ -s /etc/nginx/conf.d/default.conf ]; then if [ -s /etc/nginx/conf.d/default.conf ]; then
echo -e "检测到默认nginx配置文件清空...\n" echo -e "检测到默认nginx配置文件清空...\n"
echo '' > /etc/nginx/conf.d/default.conf cat /dev/null > /etc/nginx/conf.d/default.conf
echo echo
fi fi
} }
@ -322,5 +322,4 @@ detect_macos
define_cmd define_cmd
fix_config 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