✏️ 正在编辑: zabbix-agent.postrm
路径:
/var/lib/dpkg/info/zabbix-agent.postrm
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/bin/sh -e case "$1" in failed-upgrade|abort-install|abort-upgrade|disappear|upgrade) ;; remove) ;; purge) rm -f /etc/zabbix/zabbix_agent.conf rm -f /etc/zabbix/zabbix_agentd.conf rm -f /var/log/zabbix/zabbix_agentd.log* rm -f /var/run/zabbix/zabbix_agentd.pid ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installinit/11.1.6ubuntu1 if [ "$1" = "purge" ] ; then update-rc.d zabbix-agent remove >/dev/null fi # In case this system is running systemd, we make systemd reload the unit files # to pick up changes. if [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable/11.1.6ubuntu1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'zabbix-agent.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'zabbix-agent.service' >/dev/null || true deb-systemd-helper unmask 'zabbix-agent.service' >/dev/null || true fi fi # End automatically added section exit 0
💾 保存文件
← 返回文件管理器