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."