github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/packager/templates/debian/generic/postinst (about) 1 #!/bin/sh 2 3 action="$1" 4 5 if [ "$action" = configure ]; then 6 old_version="$2" 7 8 if [ -z "$old_version" ]; then 9 systemctl enable choria-server.service 10 else 11 systemctl try-restart choria-broker.service choria-server.service 12 fi 13 fi