1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
post_install() { systemd-sysusers storm.conf systemd-tmpfiles --create storm.conf } post_upgrade(){ systemd-sysusers storm.conf systemd-tmpfiles --create storm.conf } post_remove() { if getent passwd storm >/dev/null 2>&1; then userdel -f storm fi if getent group storm >/dev/null 2>&1; then groupdel -f storm fi }