✏️ 正在编辑: zabbix-frontend-php.postinst
路径:
/var/lib/dpkg/info/zabbix-frontend-php.postinst
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/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/assets/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/assets/fonts/graphfont.ttf zabbix-frontend-font $file 20 break fi done fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0
💾 保存文件
← 返回文件管理器