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:
@ -17,11 +17,13 @@ then
|
|||||||
|
|
||||||
if [ -f /usr/lib/systemd/system/maxscale.service ]
|
if [ -f /usr/lib/systemd/system/maxscale.service ]
|
||||||
then
|
then
|
||||||
systemd stop maxscale.service
|
systemctl stop maxscale.service
|
||||||
|
systemctl disable maxscale.service
|
||||||
rm /usr/lib/systemd/system/maxscale.service
|
rm /usr/lib/systemd/system/maxscale.service
|
||||||
elif [ -f /lib/systemd/system/maxscale.service ]
|
elif [ -f /lib/systemd/system/maxscale.service ]
|
||||||
then
|
then
|
||||||
systemd stop maxscale.service
|
systemctl stop maxscale.service
|
||||||
|
systemctl disable maxscale.service
|
||||||
rm /lib/systemd/system/maxscale.service
|
rm /lib/systemd/system/maxscale.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user