Update install_dev.sh

pull/620/head
Mr Chen 10 months ago
parent ed4a58025b
commit 5bec8e0c38
  1. 4
      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" echo -e "You are installing\033[31m mdserver-web dev version\033[0m, normally use install.sh for production.\n"
sleep 1 sleep 1
LOG_FILE=/var/log/mw-install.log
{ {
if [ -f /etc/motd ];then if [ -f /etc/motd ];then
@ -174,7 +176,7 @@ endTime=`date +%s`
((outTime=(${endTime}-${startTime})/60)) ((outTime=(${endTime}-${startTime})/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" 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 -e "\nInstall completed. If error occurs, please contact us with the log file mw-install.log ."
echo "安装完毕,如果出现错误,请带上同目录下的安装日志 mw-install.log 联系我们反馈." echo "安装完毕,如果出现错误,请带上同目录下的安装日志 mw-install.log 联系我们反馈."
Loading…
Cancel
Save