1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
post_install() { echo "Reloading daemons..." systemctl daemon-reload systemctl condrestart snapman } post_upgrade() { echo "Reloading daemons..." systemctl daemon-reload systemctl condrestart snapman } pre_remove() { echo "Stopping snapman service..." systemctl stop snapman echo "Disabling snapman service..." systemctl disable snapman }