mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-01 10:29:13 +01:00
Added variable for root user. Removed DB root from web images
This commit is contained in:
parent
3e4148a389
commit
cdbf3aee1b
@ -110,7 +110,7 @@ check_db_connect() {
|
|||||||
|
|
||||||
export MYSQL_PWD="${DB_SERVER_ZBX_PASS}"
|
export MYSQL_PWD="${DB_SERVER_ZBX_PASS}"
|
||||||
|
|
||||||
while [ ! "$(mysqladmin ping -h ${DB_SERVER_HOST} -P ${DB_SERVER_PORT} -u ${DB_SERVER_ZBX_PASS} \
|
while [ ! "$(mysqladmin ping -h ${DB_SERVER_HOST} -P ${DB_SERVER_PORT} -u ${DB_SERVER_ZBX_USER} \
|
||||||
--silent --connect_timeout=10 $ssl_opts)" ]; do
|
--silent --connect_timeout=10 $ssl_opts)" ]; do
|
||||||
echo "**** MySQL server is not available. Waiting $WAIT_TIMEOUT seconds..."
|
echo "**** MySQL server is not available. Waiting $WAIT_TIMEOUT seconds..."
|
||||||
sleep $WAIT_TIMEOUT
|
sleep $WAIT_TIMEOUT
|
||||||
|
Loading…
Reference in New Issue
Block a user