build(deb): fix postrm for checking systemd

This commit is contained in:
William Yang 2021-12-07 13:27:46 +01:00
parent 75eafcd630
commit afd07591bd
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ case "$1" in
rm -r /usr/lib/emqx
fi
if pidof systemd; then
if systemctl status --no-pager; then
systemctl disable emqx;
rm -f /etc/systemd/emqx.service
fi