X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostrm;h=ff332bf149a1ac09b037d5147c2cd518c6a8b3e0;hb=5d904390482bcc78d2f43ff3c99dd87f159179e3;hp=536075cd044305942bc3943cb03bbf706e4f1525;hpb=ad6aedb9016c5ab9dbc0ac73830206dc71025930;p=ossec-hids-cn.git diff --git a/debian/postrm b/debian/postrm index 536075c..ff332bf 100755 --- a/debian/postrm +++ b/debian/postrm @@ -31,7 +31,9 @@ esac . /usr/share/carnet-tools/functions.sh # get installation directory -. /etc/ossec-init.conf +if [ -e /etc/ossec-init.conf ]; then + . /etc/ossec-init.conf +fi if [ "X${DIRECTORY}" = "X" ]; then DIRECTORY="/var/ossec" fi @@ -44,11 +46,7 @@ if [ -e "$local_rules" ]; then fi # and start the service -if [ -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d ossec-hids restart -else - /etc/init.d/ossec-hids restart -fi +service ossec-hids restart || true # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.