MXS-2871: Fix postrm script

The script used the wrong command to stop the service. Added the missing
disable that mirrors the enable in the postinst script.
This commit is contained in:
Markus Mäkelä 2020-02-04 09:39:23 +02:00
parent f6d848d58c
commit c0e20137ee
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -17,11 +17,13 @@ then
if [ -f /usr/lib/systemd/system/maxscale.service ]
then
systemd stop maxscale.service
systemctl stop maxscale.service
systemctl disable maxscale.service
rm /usr/lib/systemd/system/maxscale.service
elif [ -f /lib/systemd/system/maxscale.service ]
then
systemd stop maxscale.service
systemctl stop maxscale.service
systemctl disable maxscale.service
rm /lib/systemd/system/maxscale.service
fi