|
|
@ -4,6 +4,8 @@ export PATH |
|
|
|
# LANG=en_US.UTF-8 |
|
|
|
# LANG=en_US.UTF-8 |
|
|
|
is64bit=`getconf LONG_BIT` |
|
|
|
is64bit=`getconf LONG_BIT` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
if [ -f /etc/motd ];then |
|
|
|
if [ -f /etc/motd ];then |
|
|
|
echo "welcome to mdserver-web panel" > /etc/motd |
|
|
|
echo "welcome to mdserver-web panel" > /etc/motd |
|
|
|
fi |
|
|
|
fi |
|
|
@ -18,8 +20,6 @@ if [ "$EUID" -ne 0 ] |
|
|
|
exit |
|
|
|
exit |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${_os} == "Darwin" ]; then |
|
|
|
if [ ${_os} == "Darwin" ]; then |
|
|
|
OSNAME='macos' |
|
|
|
OSNAME='macos' |
|
|
|
elif grep -Eq "openSUSE" /etc/*-release; then |
|
|
|
elif grep -Eq "openSUSE" /etc/*-release; then |
|
|
@ -139,5 +139,5 @@ echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" |
|
|
|
|
|
|
|
|
|
|
|
} 1> >(tee mw-install.log) 2>&1 |
|
|
|
} 1> >(tee mw-install.log) 2>&1 |
|
|
|
|
|
|
|
|
|
|
|
echo -e "\n\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 联系我们反馈." |