PREIN
/bin/sh
/usr/share/rpm-helper/add-user icecast $1 icecast /usr/share/icecast /bin/false
PREUN
/bin/sh
/usr/share/rpm-helper/del-service icecast $1 icecast
POSTIN
/bin/sh
/usr/bin/systemd-tmpfiles --create icecast.conf
# systemd migration fails to stop the daemon started by init script
if [ "$1" = "2" ]; then
if ! [ -f /var/lib/rpm-helper/systemd-migration/icecast ]; then
kill "`cat /var/run/icecast/icecast.pid`" 2>/dev/null
fi
fi
/usr/share/rpm-helper/add-service icecast $1 icecast
POSTUN
/bin/sh
/usr/share/rpm-helper/del-user icecast $1 icecast