Skip to content

Commit bbcf60d

Browse files
Use mysql as service name in docker -- vagrant_up
1 parent 4c38733 commit bbcf60d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

config/homebin/vagrant_up

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ if ! sudo service nginx status > /dev/null; then
3737
sudo service nginx start
3838
fi
3939

40-
if ! sudo service mariadb status > /dev/null; then
41-
vvv_info " * Starting MariaDB service"
42-
sudo service mariadb start
40+
41+
vvv_info " * Starting MariaDB service"
42+
if [ ! -f /.dockerenv ]; then
43+
if ! sudo service mariadb status > /dev/null; then
44+
sudo service mariadb start
45+
fi
46+
else
47+
if ! sudo service mysql status > /dev/null; then
48+
sudo service mysql start
49+
fi
4350
fi
4451

4552
vvv_info " * Checking PHP-FPM Services"

0 commit comments

Comments
 (0)