✏️ 正在编辑: zabbix-proxy-mysql.postinst
路径:
/var/lib/dpkg/info/zabbix-proxy-mysql.postinst
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/bin/sh -e if [ "$1" = "configure" ]; then if ! getent group zabbix > /dev/null 2>&1 ; then addgroup --system --quiet zabbix fi if ! getent passwd zabbix > /dev/null 2>&1 ; then adduser --quiet \ --system --disabled-login --ingroup zabbix \ --home /var/lib/zabbix/ --no-create-home \ zabbix fi chown zabbix:zabbix /var/log/zabbix -R fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installinit/11.1.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # In case this system is running systemd, we need to ensure that all # necessary tmpfiles (if any) are created before starting. if [ -d /run/systemd/system ] ; then systemd-tmpfiles --create /usr/lib/tmpfiles.d/zabbix-proxy.conf >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installinit/11.1.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/zabbix-proxy" ]; then update-rc.d zabbix-proxy defaults >/dev/null || exit 1 fi fi # End automatically added section exit 0
💾 保存文件
← 返回文件管理器