initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

31
mpd/mpd.install Normal file
View File

@@ -0,0 +1,31 @@
post_install() {
if ! getent group mpd &>/dev/null; then
groupadd -r -g 45 mpd >/dev/null
fi
if ! getent passwd mpd &>/dev/null; then
useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/nologin -G audio mpd >/dev/null
fi
mpd_shell=$(getent passwd mpd | cut -d: -f7)
if [ "$mpd_shell" != '/bin/nologin' ]; then
chsh -s /bin/nologin mpd &>/dev/null
fi
install -d -m750 /var/log/mpd
chown mpd:mpd /var/log/mpd
install -d -m750 /var/lib/mpd
chown mpd:mpd /var/lib/mpd
}
post_upgrade() {
post_install
}
post_remove() {
if getent passwd mpd &>/dev/null; then
userdel mpd >/dev/null
fi
if getent group mpd &>/dev/null; then
groupdel mpd >/dev/null
fi
}