summaryrefslogtreecommitdiff
path: root/extra/avahi/install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/avahi/install')
-rw-r--r--extra/avahi/install11
1 files changed, 6 insertions, 5 deletions
diff --git a/extra/avahi/install b/extra/avahi/install
index 7c75c3dd4..d333389ee 100644
--- a/extra/avahi/install
+++ b/extra/avahi/install
@@ -1,8 +1,8 @@
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
+ 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
- cat <<EOF
+ cat <<EOF
==> The following daemons may be added to DAEMONS in /etc/rc.conf:
==> avahi-daemon: the mdns responder, you probably want this.
==> dbus needs to be running when you start it.
@@ -16,6 +16,7 @@ EOF
}
post_remove() {
- getent passwd avahi &>/dev/null && userdel avahi >/dev/null
- getent group avahi &>/dev/null && groupdel avahi >/dev/null
+ getent passwd avahi &>/dev/null && userdel avahi >/dev/null
+ getent group avahi &>/dev/null && groupdel avahi >/dev/null
+ true
}