mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 05:57:14 +08:00
18 lines
527 B
Plaintext
18 lines
527 B
Plaintext
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
|
|
}
|
|
|
|
pre_remove() {
|
|
echo "Disabling systemd service"
|
|
systemctl disable avahi-daemon.service
|
|
}
|
|
|
|
post_remove() {
|
|
getent passwd avahi &>/dev/null && userdel avahi >/dev/null
|
|
getent group avahi &>/dev/null && groupdel avahi >/dev/null
|
|
}
|