mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
12 lines
406 B
Plaintext
12 lines
406 B
Plaintext
post_install() {
|
|
getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null
|
|
getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null
|
|
usr/bin/systemd-tmpfiles --create mpd.conf || true
|
|
}
|
|
|
|
post_remove() {
|
|
getent passwd mpd &>/dev/null && userdel mpd >/dev/null
|
|
getent group mpd &>/dev/null && groupdel mpd >/dev/null
|
|
true
|
|
}
|