@@ -30,45 +30,45 @@ echo -e "\n\n${BOLD}Running Services Check:${NORMAL}\n"
3030# MariaDB Service Check
3131STATUS=" $( systemctl is-active mariadb) "
3232if [ " ${STATUS} " = " active" ]; then
33- echo " MariaDB is running. Continuing the installation process ."
33+ echo " PASSED: MariaDB is running."
3434else
35- echo " MariaDB not running. Please diagnose this issue before proceeding"
35+ echo " FAILED: MariaDB not running. Please diagnose this issue before proceeding"
3636 exit 1
3737fi
3838
3939# MySQL Service Check
4040STATUS=" $( systemctl is-active mysql) "
4141if [ " ${STATUS} " = " active" ]; then
42- echo " MySQL is running. Continuing the installation process ."
42+ echo " PASSED: MySQL is running."
4343else
44- echo " MySQL not running. Please diagnose this issue before proceeding"
44+ echo " FAILED: MySQL not running. Please diagnose this issue before proceeding"
4545 exit 1
4646fi
4747
4848# Nginx Service Check
4949STATUS=" $( systemctl is-active nginx) "
5050if [ " ${STATUS} " = " active" ]; then
51- echo " Nginx is running. Continuing the installation process ."
51+ echo " PASSED: Nginx is running."
5252else
53- echo " Nginx not running. Please diagnose this issue before proceeding"
53+ echo " FAILED: Nginx not running. Please diagnose this issue before proceeding"
5454 exit 1
5555fi
5656
5757# PHP Service Check
5858STATUS=" $( systemctl is-active php${PHP_VER} -fpm) "
5959if [ " ${STATUS} " = " active" ]; then
60- echo " PHP ${PHP_VER} is running. Continuing the installation process ."
60+ echo " PASSED: PHP ${PHP_VER} is running."
6161else
62- echo " PHP ${PHP_VER} not running. Please diagnose this issue before proceeding"
62+ echo " FAILED: PHP ${PHP_VER} not running. Please diagnose this issue before proceeding"
6363 exit 1
6464fi
6565
6666# Redis Service Check
6767STATUS=" $( systemctl is-active redis) "
6868if [ " ${STATUS} " = " active" ]; then
69- echo " Redis is running. Continuing the installation process ."
69+ echo " PASSED: Redis is running."
7070else
71- echo " Redis not running. Please diagnose this issue before proceeding"
71+ echo " FAILED: Redis not running. Please diagnose this issue before proceeding"
7272 exit 1
7373fi
7474
0 commit comments