Skip to content

Commit cb498e8

Browse files
committed
updated github workflow action of the compatibility with the latest Zabbix version check
1 parent b868ef8 commit cb498e8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/compatibility_latest.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- name: Install packages
2222
run: |
23-
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev zabbix-sender
23+
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-16 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.3-pgsql php8.3-bcmath php8.3-xml php8.3-gd php8.3-ldap php8.3-mbstring libzip-dev
2424
- name: Build from sources
2525
run: |
2626
WORKDIR=$(pwd)
2727
cd /tmp/
28+
sudo addgroup --system --quiet zabbix
29+
sudo adduser --quiet --system --disabled-login --ingroup zabbix --home /var/lib/zabbix --no-create-home zabbix
2830
git -c advice.detachedHead=false clone https://git.zabbix.com/scm/zbx/zabbix.git --branch ${{ env.ZABBIX_BRANCH }} --depth 1 --single-branch /tmp/zabbix-branch
2931
cd /tmp/zabbix-branch
3032
./bootstrap.sh
@@ -56,21 +58,19 @@ jobs:
5658
sudo rm /var/www/html/index.html
5759
sudo cp -a . /var/www/html/
5860
sudo cp $WORKDIR/${{ env.CONFIG_PATH }}/zabbix.conf.php /var/www/html/conf/
59-
sudo cp $WORKDIR/${{ env.CONFIG_PATH }}/pg_hba.conf /etc/postgresql/14/main/pg_hba.conf
61+
sudo cp $WORKDIR/${{ env.CONFIG_PATH }}/pg_hba.conf /etc/postgresql/16/main/pg_hba.conf
6062
sudo chown -R www-data:www-data /var/www/html/
61-
sudo sed -i "s/post_max_size = 8M/post_max_size = 16M/g" /etc/php/8.1/apache2/php.ini
62-
sudo sed -i "s/max_execution_time = 30/max_execution_time = 300/g" /etc/php/8.1/apache2/php.ini
63-
sudo sed -i "s/max_input_time = 60/max_input_time = 300/g" /etc/php/8.1/apache2/php.ini
63+
sudo sed -i "s/post_max_size = 8M/post_max_size = 16M/g" /etc/php/8.3/apache2/php.ini
64+
sudo sed -i "s/max_execution_time = 30/max_execution_time = 300/g" /etc/php/8.3/apache2/php.ini
65+
sudo sed -i "s/max_input_time = 60/max_input_time = 300/g" /etc/php/8.3/apache2/php.ini
6466
sudo locale-gen en_US.UTF-8
6567
sudo update-locale
6668
- name: Prepare environment
6769
run: |
68-
sudo addgroup --system --quiet zabbix
69-
sudo adduser --quiet --system --disabled-login --ingroup zabbix --home /var/lib/zabbix --no-create-home zabbix
70-
sudo mkdir -p /var/run/postgresql/14-main.pg_stat_tmp
71-
sudo touch /var/run/postgresql/14-main.pg_stat_tmp/global.tmp
72-
sudo chmod 0777 /var/run/postgresql/14-main.pg_stat_tmp/global.tmp
73-
(sudo -u postgres /usr/lib/postgresql/14/bin/postgres -D /var/lib/postgresql/14/main -c config_file=/etc/postgresql/14/main/postgresql.conf)&
70+
sudo mkdir -p /var/run/postgresql/16-main.pg_stat_tmp
71+
sudo touch /var/run/postgresql/16-main.pg_stat_tmp/global.tmp
72+
sudo chmod 0777 /var/run/postgresql/16-main.pg_stat_tmp/global.tmp
73+
(sudo -u postgres /usr/lib/postgresql/16/bin/postgres -D /var/lib/postgresql/16/main -c config_file=/etc/postgresql/16/main/postgresql.conf)&
7474
sleep 5
7575
cd /tmp/zabbix-branch/database/postgresql
7676
sudo -u postgres createuser zabbix

0 commit comments

Comments
 (0)