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

View File

@@ -0,0 +1,27 @@
post_install() {
if ! getent passwd timidity &>/dev/null; then
useradd -r -g audio -d /var/lib/timidity -s /bin/nologin timidity >/dev/null
fi
if ! groups timidity | grep audio &>/dev/null; then
gpasswd -a timidity audio >/dev/null
fi
timidity_shell=$(getent passwd timidity | cut -d: -f7)
if [ "$timidity_shell" != '/bin/nologin' ]; then
chsh -s /bin/nologin timidity &>/dev/null
fi
if [[ ! -d /var/lib/timidity ]]; then
mkdir -p /var/lib/timidity
fi
chown -R timidity:audio /var/lib/timidity
}
post_upgrade() {
post_install
}
post_remove() {
echo "-- You may want to remove /var/lib/timidity"
if getent passwd timidity &>/dev/null; then
userdel timidity >/dev/null
fi
}