PREIN
/bin/sh
/usr/share/rpm-helper/add-user transmission $1 transmission /var/lib/transmission /sbin/nologin
PREUN
/bin/sh
if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
# Package removal, not upgrade
/usr/lib/systemd/systemd-update-helper remove-system-units transmission-daemon.service || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
# Initial installation
/usr/lib/systemd/systemd-update-helper install-system-units transmission-daemon.service || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
# Package upgrade, not uninstall
/usr/lib/systemd/systemd-update-helper mark-restart-system-units transmission-daemon.service || :
fi