mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
Check status before running MySQL command
This commit is contained in:
parent
da75e70afc
commit
0bee25a0e2
@ -17,7 +17,7 @@ install-not-interactive:
|
||||
echo "${yellow}About to run COMPOSER INSTALL${reset}"
|
||||
docker exec opensupports-srv bash -c "cd /var/www/html && composer install" || echo "${red}Please execute 'make run' first${reset}"
|
||||
echo "${yellow}About to run CREATE DATABASE IF NOT EXISTS${reset}"
|
||||
docker exec -u root opensupports-db bash -c "sudo /etc/init.d/mysql stop && sudo /etc/init.d/mysql start && mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
|
||||
docker exec -u root opensupports-db bash -c "/etc/init.d/mysql status; mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
|
||||
echo "${yellow}About to FINISH INSTALL-NOT-INTERACTIVE${reset}"
|
||||
|
||||
setup-vendor-permissions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user