From 0b2348791855d4b4a4c563a00048807ab287a8b3 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 19 Mar 2015 20:21:13 +0200 Subject: [PATCH] Added a fix to post uninstall scripts. --- etc/postrm.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/postrm.in b/etc/postrm.in index 7d30091c2..b1e86fca5 100755 --- a/etc/postrm.in +++ b/etc/postrm.in @@ -1,3 +1,6 @@ #!/bin/sh -rm -f /etc/init.d/maxscale -rm -f /etc/ld.so.conf.d/maxscale.conf +if [ "$1" -eq 0 ] +then + rm -f /etc/init.d/maxscale + rm -f /etc/ld.so.conf.d/maxscale.conf +fi