2010-03-14 23:48:48 +08:00
|
|
|
post_install() {
|
openssl pf, samba, cyrus-sasl packages, wvstreams, autofs, avahi, cifs-utils, cups, nss_ldap, testdisk, yaz, tls
2012-12-17 09:48:47 +08:00
|
|
|
getent group avahi &>/dev/null || groupadd -r -g 84 avahi >/dev/null
|
|
|
|
getent passwd avahi &>/dev/null || useradd -r -u 84 -g avahi -d / -s /bin/false -c avahi avahi >/dev/null
|
2013-01-14 03:06:22 +08:00
|
|
|
|
|
|
|
echo "Enabling systemd service"
|
|
|
|
systemctl enable avahi-daemon.service
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
echo "Enabling systemd service"
|
|
|
|
systemctl enable avahi-daemon.service
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_remove() {
|
|
|
|
echo "Disabling systemd service"
|
|
|
|
systemctl disable avahi-daemon.service
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
openssl pf, samba, cyrus-sasl packages, wvstreams, autofs, avahi, cifs-utils, cups, nss_ldap, testdisk, yaz, tls
2012-12-17 09:48:47 +08:00
|
|
|
getent passwd avahi &>/dev/null && userdel avahi >/dev/null
|
|
|
|
getent group avahi &>/dev/null && groupdel avahi >/dev/null
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|