From 87ba465ada84f66d17f5dea7b3a76506d323c8da Mon Sep 17 00:00:00 2001 From: Hendrawan Kuncoro Date: Sun, 20 Oct 2024 04:12:12 +0700 Subject: [PATCH] Fix syntax issue - Better messages --- config/homebin/vagrant_up | 5 ++--- provision/core/mariadb/provision.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/homebin/vagrant_up b/config/homebin/vagrant_up index 1ef5952d8..df7d7678f 100755 --- a/config/homebin/vagrant_up +++ b/config/homebin/vagrant_up @@ -41,9 +41,8 @@ fi vvv_info " * Starting MariaDB service" - if ! sudo service "${mysql_service_name[@]}" status > /dev/null; then - sudo service "${mysql_service_name[@]}" start - fi +if ! sudo service "${mysql_service_name[@]}" status > /dev/null; then + sudo service "${mysql_service_name[@]}" start fi vvv_info " * Checking PHP-FPM Services" diff --git a/provision/core/mariadb/provision.sh b/provision/core/mariadb/provision.sh index e9db306fd..80624055a 100644 --- a/provision/core/mariadb/provision.sh +++ b/provision/core/mariadb/provision.sh @@ -145,7 +145,7 @@ function mysql_setup() { exit 1 fi else - vvv_info " * Restarting mariadb service" + vvv_info " * Starting mariadb service" service "${mysql_service_name[@]}" start if ! service "${mysql_service_name[@]}" start; then vvv_error " * Starting MariaDB failed! Fetching service status."