Merge branch 'master' into trunk

This commit is contained in:
root 2019-01-13 00:26:01 +02:00
commit ef11ec0694
38 changed files with 38 additions and 34 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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/"]

View File

@ -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"

View File

@ -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/"]

View File

@ -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"

View File

@ -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/"]

View File

@ -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"

View File

@ -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/"]

View File

@ -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"