#!/bin/bash # postinst script for imunify-common set -e case "$1" in configure) /bin/systemctl daemon-reload >/dev/null /bin/systemctl enable imunify-agent-proxy.socket >/dev/null /bin/systemctl start imunify-agent-proxy.socket >/dev/null /bin/systemctl enable imunify-agent-proxy.service >/dev/null /bin/systemctl start imunify-agent-proxy.service >/dev/null ;; triggered) /usr/bin/systemctl restart imunify-agent-proxy.service >/dev/null ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0