projects
/
ossec-hids-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Izmjene za stretch
[ossec-hids-cn.git]
/
debian
/
postrm
diff --git
a/debian/postrm
b/debian/postrm
index
536075c
..
ff332bf
100755
(executable)
--- a/
debian/postrm
+++ b/
debian/postrm
@@
-31,7
+31,9
@@
esac
. /usr/share/carnet-tools/functions.sh
# get installation directory
. /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
if [ "X${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
@@
-44,11
+46,7
@@
if [ -e "$local_rules" ]; then
fi
# and start the service
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.
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.