build(deb): fix postrm for checking systemd
This commit is contained in:
parent
75eafcd630
commit
afd07591bd
|
@ -56,7 +56,7 @@ case "$1" in
|
||||||
rm -r /usr/lib/emqx
|
rm -r /usr/lib/emqx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pidof systemd; then
|
if systemctl status --no-pager; then
|
||||||
systemctl disable emqx;
|
systemctl disable emqx;
|
||||||
rm -f /etc/systemd/emqx.service
|
rm -f /etc/systemd/emqx.service
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue