Hi, I was upgrading zabbix 3.2.8 to 3.2.9 on Debian 9, using official repo from here "https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/repository_installation"
All package has been upgrade correctly, except zabbix-frontend-php
This is the content of the file /var/lib/dpkg/info/zabbix-frontend-php.postinst
Somebody has the same issue?
All package has been upgrade correctly, except zabbix-frontend-php
Code:
apt-get install zabbix-frontend-php Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: zabbix-frontend-php 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/2,080 kB of archives. After this operation, 14.6 MB of additional disk space will be used. Selecting previously unselected package zabbix-frontend-php. (Reading database ... 31534 files and directories currently installed.) Preparing to unpack .../zabbix-frontend-php_1%3a3.2.9-1+stretch_all.deb ... Unpacking zabbix-frontend-php (1:3.2.9-1+stretch) ... Setting up zabbix-frontend-php (1:3.2.9-1+stretch) ... /var/lib/dpkg/info/zabbix-frontend-php.postinst: line 11: syntax error near unexpected token `then' dpkg: error processing package zabbix-frontend-php (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: zabbix-frontend-php E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
ii zabbix-agent 1:3.2.9-1+stretch amd64 Zabbix network monitoring solution - agent iF zabbix-frontend-php 1:3.2.9-1+stretch all Zabbix network monitoring solution - PHP front-end ii zabbix-get 1:3.2.9-1+stretch amd64 Zabbix network monitoring solution - get ii zabbix-release 3.2-1+stretch all Zabbix official repository configuration ii zabbix-server-mysql 1:3.2.9-1+stretch amd64 Zabbix network monitoring solution - server (MySQL)
Code:
#!/bin/sh -e
if [ "$1" = "configure" ]; then
if [ -d /etc/zabbix/web ]; then
chown www-data.root /etc/zabbix/web
chmod 755 /etc/zabbix/web
fi
for file in /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf; do
if [ -e $file ]; then
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf zabbix-frontend-font $file 10
break
fi
done
for file in /etc/alternatives/ttf-japanese-gothic.ttf /etc/alternatives/fonts-japanese-gothic.ttf; do
if [ -e $file ]; then
update-alternatives --install /usr/share/zabbix/fonts/graphfont.ttf zabbix-frontend-font $file 20
break
fi
done
if [ -d /etc/apache2/conf.d ] && [ ! -f /etc/apache2/conf.d/zabbix ] && [ ! -h /etc/apache2/conf.d/zabbix ]; then
ln -s /etc/zabbix/apache.conf /etc/apache2/conf.d/zabbix
elif [ -d /etc/apache2/conf-available ] && [ ! -f /etc/apache2/conf-available/zabbix.conf ] && [ ! -h /etc/apache2/conf-available/zabbix.conf ]; then
ln -s /etc/zabbix/apache.conf /etc/apache2/conf-available/zabbix.conf
/usr/sbin/a2enconf zabbix.conf
fi
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
Comment