✏️ 正在编辑: zabbix-apache-conf.postinst
路径:
/var/lib/dpkg/info/zabbix-apache-conf.postinst
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/bin/sh -e if [ "$1" = "configure" ]; then 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 ] && [ -x /usr/sbin/a2enconf ]; 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
💾 保存文件
← 返回文件管理器