mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
16 lines
385 B
Text
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
|
|
}
|