diff --git a/scripts/postinst.sh b/scripts/postinst.sh index 37ea3304..0cf80d10 100755 --- a/scripts/postinst.sh +++ b/scripts/postinst.sh @@ -41,13 +41,16 @@ if [ "$1" = "configure" ] || [ "$1" -ge 1 ]; then systemctl restart ntfy-client.service >/dev/null || true fi fi - if systemctl --user is-active -q ntfy-client.service; then - echo "Restarting ntfy-client.service (user)..." - if [ -x /usr/bin/deb-systemd-invoke ]; then - deb-systemd-invoke --user try-restart ntfy-client.service >/dev/null || true - else - systemctl --user restart ntfy-client.service >/dev/null || true - fi - fi + + # inform user about systemd user service + echo + echo "------------------------------------------------------------------------" + echo "ntfy includes a systemd user service." + echo "To enable it, run following commands as your regular user (not as root):" + echo + echo " systemctl --user enable ntfy-client.service" + echo " systemctl --user start ntfy-client.service" + echo "------------------------------------------------------------------------" + echo fi fi