Removed duplicates for custom sql scripts

This commit is contained in:
Alexey Pustovalov 2024-05-14 02:44:00 +09:00
parent 9128e6054e
commit bba9e2b4a9
18 changed files with 0 additions and 18 deletions

View File

@ -78,7 +78,6 @@ RUN set -eux && \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -335,7 +335,6 @@ create_db_schema_mysql() {
exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz" exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz"
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -87,7 +87,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -332,7 +332,6 @@ create_db_schema_mysql() {
exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz" exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz"
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -88,7 +88,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
mkdir -p /etc/zabbix && \ mkdir -p /etc/zabbix && \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \ mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \

View File

@ -332,7 +332,6 @@ create_db_schema_mysql() {
exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz" exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz"
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -117,7 +117,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -332,7 +332,6 @@ create_db_schema_mysql() {
exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz" exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz"
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -82,7 +82,6 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -332,7 +332,6 @@ create_db_schema_mysql() {
exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz" exec_sql_file "/usr/share/doc/zabbix-server-mysql/create.sql.gz"
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -79,7 +79,6 @@ RUN set -eux && \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -352,7 +352,6 @@ create_db_schema_postgresql() {
exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql" exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql"
fi fi
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -87,7 +87,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -352,7 +352,6 @@ create_db_schema_postgresql() {
exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql" exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql"
fi fi
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -87,7 +87,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -352,7 +352,6 @@ create_db_schema_postgresql() {
exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql" exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql"
fi fi
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }

View File

@ -83,7 +83,6 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \
mkdir -p /var/lib/zabbix && \ mkdir -p /var/lib/zabbix && \
mkdir -p /usr/lib/zabbix/alertscripts && \ mkdir -p /usr/lib/zabbix/alertscripts && \
mkdir -p /usr/lib/zabbix/dbscripts && \ mkdir -p /usr/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/dbscripts && \
mkdir -p /var/lib/zabbix/enc && \ mkdir -p /var/lib/zabbix/enc && \
mkdir -p /var/lib/zabbix/export && \ mkdir -p /var/lib/zabbix/export && \
mkdir -p /usr/lib/zabbix/externalscripts && \ mkdir -p /usr/lib/zabbix/externalscripts && \

View File

@ -352,7 +352,6 @@ create_db_schema_postgresql() {
exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql" exec_sql_file "/usr/share/doc/zabbix-server-postgresql/timescaledb.sql"
fi fi
apply_db_scripts "/usr/lib/zabbix/dbscripts/*.sql"
apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql" apply_db_scripts "/var/lib/zabbix/dbscripts/*.sql"
fi fi
} }