core/avahi/avahi.install

23 lines
628 B
Plaintext
Raw Normal View History

2010-03-14 23:48:48 +08:00
post_install() {
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
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() {
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
}