From d1a6c61bd81aee8fb9a9c5b57a4714a33244eb1f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 24 Jul 2024 01:15:47 +0800 Subject: [PATCH] Update install.sh --- scripts/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index ceec11235..9605304f1 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -4,6 +4,8 @@ export PATH # LANG=en_US.UTF-8 is64bit=`getconf LONG_BIT` +LOG_FILE=/var/log/mw-install.log + { if [ -f /etc/motd ];then @@ -168,7 +170,7 @@ endTime=`date +%s` ((outTime=(${endTime}-${startTime})/60)) echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" -} 1> >(tee mw-install.log) 2>&1 +} 1> >(tee $LOG_FILE) 2>&1 echo -e "\nInstall completed. If error occurs, please contact us with the log file mw-install.log ." echo "安装完毕,如果出现错误,请带上同目录下的安装日志 mw-install.log 联系我们反馈." \ No newline at end of file