mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Improve uninstall (both script and rpm)
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
06a17c8973
commit
5a48ff978e
@ -83,6 +83,16 @@ if [ $1 -eq 0 ]; then
|
|||||||
elif [ -x /sbin/chkconfig ]; then
|
elif [ -x /sbin/chkconfig ]; then
|
||||||
/sbin/chkconfig --del shorewall-init
|
/sbin/chkconfig --del shorewall-init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -f /sbin/ifup-local ] && $(ls -l /sbin/ifup-local) | grep -q /usr/share/shorewall-init && rm -f /sbin/ifup-local
|
||||||
|
[ -f /sbin/ifdown-local ] && $(ls -l /sbin/ifdown-local) | grep -q /usr/share/shorewall-init && rm -f /sbin/ifdown-local
|
||||||
|
|
||||||
|
rm -f /etc/sysconfig/shorewall-init
|
||||||
|
|
||||||
|
rm -f /etc/NetworkManager/dispatcher.d/01-shorewall
|
||||||
|
|
||||||
|
rm -f /etc/sysconfig/network/if-up.d/shorewall
|
||||||
|
rm -f /etc/sysconfig/network/if-down.d/shorewall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
@ -76,8 +76,8 @@ if [ -n "$INITSCRIPT" ]; then
|
|||||||
remove_file $INITSCRIPT
|
remove_file $INITSCRIPT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -f /sbin/ifup-local ] && $(ls -l /sbin/ifup-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifup-local
|
[ -f /sbin/ifup-local ] && $(ls -l /sbin/ifup-local) | grep -q /usr/share/shorewall-init && remove_file /sbin/ifup-local
|
||||||
[ -f /sbin/ifdown-local ] && $(ls -l /sbin/ifdown-local) | grep -q /usr/share/shorewall-init && removefile /sbin/ifdown-local
|
[ -f /sbin/ifdown-local ] && $(ls -l /sbin/ifdown-local) | grep -q /usr/share/shorewall-init && remove_file /sbin/ifdown-local
|
||||||
|
|
||||||
remove_file /etc/default/shorewall-init
|
remove_file /etc/default/shorewall-init
|
||||||
remove_file /etc/sysconfig/shorewall-init
|
remove_file /etc/sysconfig/shorewall-init
|
||||||
|
Loading…
Reference in New Issue
Block a user