MXS-1326: Fix postrm script

The script could only work on RPM based systems as DEB based uninstall
scripts are called with different parameters, namely "remove" instead of
"0".
This commit is contained in:
Markus Mäkelä 2017-07-25 10:34:35 +03:00
parent f16e93c112
commit ba3912ddb4

View File

@ -3,7 +3,7 @@
# The first argument is the number of packages left after
# this one has been removed. If it is 0 then the package is being
# removed from the system.
if [ "$1" -eq 0 ]
if [ "$1" = "0" ] || [ "$1" = "remove" ]
then
if [ -f /etc/init.d/maxscale ]
then