mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 17:34:37 +08:00
17 lines
385 B
Plaintext
17 lines
385 B
Plaintext
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
|
|
}
|