PKGBUILDs/extra/avahi/avahi.install
2017-07-28 18:56:17 +00:00

16 lines
385 B
Text

post_install() {
if ! getent passwd avahi &>/dev/null; then
groupadd -r -g 84 avahi
useradd -r -u 84 -g avahi -d / -s /bin/nologin -c avahi avahi
fi
}
post_upgrade() {
if (( $(vercmp $2 0.6.32rc-1) < 0 )); then
cat <<MSG
>>> Avahi now needs to be enabled in order to launch.
Run \`systemctl enable avahi-daemon\` if you wish
to make use of Avahi.
MSG
fi
}