|
@@ -464,6 +464,7 @@ case "${OS}" in
|
|
|
esac
|
|
|
|
|
|
# init
|
|
|
+startTime=`date +%s`
|
|
|
. ./include/memory.sh
|
|
|
case "${OS}" in
|
|
|
"CentOS")
|
|
@@ -734,8 +735,10 @@ fi
|
|
|
# Starting DB
|
|
|
[ -d "/etc/mysql" ] && /bin/mv /etc/mysql{,_bk}
|
|
|
[ -d "${db_install_dir}/support-files" -a -z "$(ps -ef | grep -v grep | grep mysql)" ] && /etc/init.d/mysqld start
|
|
|
-
|
|
|
+endTime=`date +%s`
|
|
|
+((installTime=($endTime-$startTime)/60))
|
|
|
echo "####################Congratulations########################"
|
|
|
+echo "Total OneinStack Install Time: ${CQUESTION}${installTime}${CEND} minutes"
|
|
|
[ "${Web_yn}" == 'y' -a "${Nginx_version}" != '4' -a "${Apache_version}" == '3' ] && echo -e "\n$(printf "%-32s" "Nginx install dir":)${CMSG}${web_install_dir}${CEND}"
|
|
|
[ "${Web_yn}" == 'y' -a "${Nginx_version}" != '4' -a "${Apache_version}" != '3' ] && echo -e "\n$(printf "%-32s" "Nginx install dir":)${CMSG}${web_install_dir}${CEND}\n$(printf "%-32s" "Apache install dir":)${CMSG}${apache_install_dir}${CEND}"
|
|
|
[ "${Web_yn}" == 'y' -a "${Nginx_version}" == '4' -a "${Apache_version}" != '3' ] && echo -e "\n$(printf "%-32s" "Apache install dir":)${CMSG}${apache_install_dir}${CEND}"
|