mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-15 04:14:24 +01:00
Merge branch 'master' into trunk
This commit is contained in:
commit
ef11ec0694
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -181,6 +181,7 @@ WORKDIR /var/lib/zabbix
|
|||||||
VOLUME ["/etc/ssl/nginx"]
|
VOLUME ["/etc/ssl/nginx"]
|
||||||
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
||||||
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
||||||
|
VOLUME ["/var/lib/mysql/"]
|
||||||
|
|
||||||
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
||||||
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -181,6 +181,7 @@ WORKDIR /var/lib/zabbix
|
|||||||
VOLUME ["/etc/ssl/nginx"]
|
VOLUME ["/etc/ssl/nginx"]
|
||||||
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
||||||
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
||||||
|
VOLUME ["/var/lib/mysql/"]
|
||||||
|
|
||||||
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
||||||
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -207,6 +207,7 @@ WORKDIR /var/lib/zabbix
|
|||||||
VOLUME ["/etc/ssl/nginx"]
|
VOLUME ["/etc/ssl/nginx"]
|
||||||
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
||||||
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
||||||
|
VOLUME ["/var/lib/mysql/"]
|
||||||
|
|
||||||
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
||||||
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
@ -211,6 +211,7 @@ WORKDIR /var/lib/zabbix
|
|||||||
VOLUME ["/etc/ssl/nginx"]
|
VOLUME ["/etc/ssl/nginx"]
|
||||||
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
VOLUME ["/usr/lib/zabbix/alertscripts", "/usr/lib/zabbix/externalscripts", "/var/lib/zabbix/enc", "/var/lib/zabbix/mibs", "/var/lib/zabbix/modules"]
|
||||||
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
VOLUME ["/var/lib/zabbix/snmptraps", "/var/lib/zabbix/ssh_keys", "/var/lib/zabbix/ssl/certs", "/var/lib/zabbix/ssl/keys", "/var/lib/zabbix/ssl/ssl_ca"]
|
||||||
|
VOLUME ["/var/lib/mysql/"]
|
||||||
|
|
||||||
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
COPY ["conf/etc/supervisor/", "/etc/supervisor/"]
|
||||||
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
COPY ["conf/etc/zabbix/nginx.conf", "/etc/zabbix/"]
|
||||||
|
@ -75,7 +75,7 @@ configure_db_mysql() {
|
|||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
|
||||||
echo "** Installing initial MySQL database schemas"
|
echo "** Installing initial MySQL database schemas"
|
||||||
mysql_install_db --user=mysql 2>&1 1>/dev/null
|
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
|
||||||
else
|
else
|
||||||
echo "**** MySQL data directory is not empty. Using already existing installation."
|
echo "**** MySQL data directory is not empty. Using already existing installation."
|
||||||
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
chown -R mysql:mysql "$MYSQL_DATA_DIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user