From 3c241e3fd3cee7d9bf936c3ac29506bb7f5d55a6 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Thu, 6 Jul 2023 22:42:27 +0200 Subject: [PATCH] Migrate zabbix to debian bookworm --- src/zabbix/constants-service.conf | 2 +- src/zabbix/install-service.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zabbix/constants-service.conf b/src/zabbix/constants-service.conf index 8e267ce..b8157a1 100644 --- a/src/zabbix/constants-service.conf +++ b/src/zabbix/constants-service.conf @@ -8,7 +8,7 @@ # This file contains the project constants on service level # Debian Version, which will be installed -LXC_TEMPLATE_VERSION="debian-11-standard" +LXC_TEMPLATE_VERSION="debian-12-standard" # Create sharefs mountpoint LXC_MP="0" diff --git a/src/zabbix/install-service.sh b/src/zabbix/install-service.sh index db4a2e7..12eae4c 100644 --- a/src/zabbix/install-service.sh +++ b/src/zabbix/install-service.sh @@ -10,7 +10,7 @@ source /root/zamba.conf source /root/constants-service.conf apt-key adv --fetch https://repo.zabbix.com/zabbix-official-repo.key -echo "deb https://repo.zabbix.com/zabbix/6.0/debian/ bullseye main contrib non-free" > /etc/apt/sources.list.d/zabbix-6.0.list +echo "deb https://repo.zabbix.com/zabbix/6.0/debian/ $(lsb_release -cs) main contrib non-free" > /etc/apt/sources.list.d/zabbix-6.0.list wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list @@ -18,7 +18,7 @@ echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" apt update DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade -DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install --no-install-recommends postgresql nginx php7.4-pgsql php7.4-fpm zabbix-server-pgsql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent ssl-cert +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install --no-install-recommends postgresql nginx php8.2-pgsql php8.2-fpm zabbix-server-pgsql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent ssl-cert unlink /etc/nginx/sites-enabled/default @@ -224,6 +224,6 @@ echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_server.conf openssl dhparam -out /etc/nginx/dhparam.pem 4096 -systemctl enable --now zabbix-server zabbix-agent nginx php7.4-fpm +systemctl enable --now zabbix-server zabbix-agent nginx php8.2-fpm -systemctl restart zabbix-server zabbix-agent nginx php7.4-fpm \ No newline at end of file +systemctl restart zabbix-server zabbix-agent nginx php8.2-fpm \ No newline at end of file