+ossec-hids-cn (2.0-3) stable; urgency=low
+
+ * #10449: ossec-hids-cn: postrm greske
+
+ -- Dinko Korunic <kreator@carnet.hr> Thu, 24 Feb 2011 18:45:49 +0100
+
ossec-hids-cn (2.0-2) stable; urgency=low
* ignoriranje BIND cache gresaka
. /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
cp_mv "$local_rules.$$" "$local_rules"
# and restart the service
-if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d ossec-hids restart
-else
- /etc/init.d/ossec-hids restart
+if [ -x /etc/init.d/ossec-hids ]; then
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d ossec-hids restart || true
+ else
+ /etc/init.d/ossec-hids restart || true
+ fi
fi
# dh_installdeb will replace this with shell code automatically
. /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
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
+if [ -x /etc/init.d/ossec-hids ]; then
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d ossec-hids restart || true
+ else
+ /etc/init.d/ossec-hids restart || true
+ fi
fi
# dh_installdeb will replace this with shell code automatically