#!/bin/bash if [ ! -f /usr/share/zabbix/fonts/simkai.ttf ]; then ln -s /root/simkai.ttf /usr/share/zabbix/fonts/simkai.ttf ls -l /usr/share/zabbix/fonts/*.ttf else echo simkai.tff file ready fi if [ -f /usr/share/zabbix/fonts/simkai.ttf ]; then sed -i "s/'graphfont'/'simkai'/" /usr/share/zabbix/include/defines.inc.php cat /usr/share/zabbix/include/defines.inc.php | grep "_FONT_NAME" else echo /usr/share/zabbix/fonts/simkai.ttf not found fi