diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 364506ef5..608a2d556 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -8,6 +8,8 @@ echo -e "您正在安装的是\033[31mmdserver-web测试版\033[0m,非开发 echo -e "You are installing\033[31m mdserver-web dev version\033[0m, normally use install.sh for production.\n" sleep 1 +LOG_FILE=/var/log/mw-install.log + { if [ -f /etc/motd ];then @@ -174,7 +176,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