remove systemd user service cmds from postinst.sh
This commit is contained in:
parent
b6983e6866
commit
0581a9e680
|
|
@ -41,13 +41,16 @@ if [ "$1" = "configure" ] || [ "$1" -ge 1 ]; then
|
||||||
systemctl restart ntfy-client.service >/dev/null || true
|
systemctl restart ntfy-client.service >/dev/null || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if systemctl --user is-active -q ntfy-client.service; then
|
|
||||||
echo "Restarting ntfy-client.service (user)..."
|
# inform user about systemd user service
|
||||||
if [ -x /usr/bin/deb-systemd-invoke ]; then
|
echo
|
||||||
deb-systemd-invoke --user try-restart ntfy-client.service >/dev/null || true
|
echo "------------------------------------------------------------------------"
|
||||||
else
|
echo "ntfy includes a systemd user service."
|
||||||
systemctl --user restart ntfy-client.service >/dev/null || true
|
echo "To enable it, run following commands as your regular user (not as root):"
|
||||||
fi
|
echo
|
||||||
fi
|
echo " systemctl --user enable ntfy-client.service"
|
||||||
|
echo " systemctl --user start ntfy-client.service"
|
||||||
|
echo "------------------------------------------------------------------------"
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue