mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-30 03:33:09 +01:00
Fixed MySQL user creation
This commit is contained in:
parent
9a330b035c
commit
3bbbdeff92
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
@ -136,7 +136,7 @@ check_variables_mysql() {
|
|||||||
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true
|
[ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true
|
||||||
|
|
||||||
# If root password is not specified use provided credentials
|
# If root password is not specified use provided credentials
|
||||||
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}
|
||||||
|
Loading…
Reference in New Issue
Block a user