X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=debian%2Fossec-hids%2FDEBIAN%2Fpostrm;fp=debian%2Fossec-hids%2FDEBIAN%2Fpostrm;h=0000000000000000000000000000000000000000;hp=9cf35a4d36b2a02887968a38a126b5c66bdd5fc0;hb=946517cefb8751a43a89bda4220221f065f4e5d1;hpb=3f728675941dc69d4e544d3a880a56240a6e394a diff --git a/debian/ossec-hids/DEBIAN/postrm b/debian/ossec-hids/DEBIAN/postrm deleted file mode 100755 index 9cf35a4..0000000 --- a/debian/ossec-hids/DEBIAN/postrm +++ /dev/null @@ -1,58 +0,0 @@ -#! /bin/sh - -set -e - -case "$1" in - purge) - # continue below - ;; - - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - exit 0 - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# cleanup leftovers -rm -rf /var/ossec/etc /var/ossec/queue /var/ossec/stats - -# chown ossec mail directory back to root -chown -Rh root:root /var/ossec - -# users and group names -OSSEC_USER="ossec" -OSSEC_USER_MAIL="ossecm" -OSSEC_USER_EXEC="ossece" -OSSEC_USER_REM="ossecr" -OSSEC_GROUP="ossec" - -# delete users/groups -if getent passwd $OSSEC_USER >/dev/null; then - deluser $OSSEC_USER -fi -if getent passwd $OSSEC_USER_MAIL >/dev/null; then - deluser $OSSEC_USER_MAIL -fi -if getent passwd $OSSEC_USER_EXEC >/dev/null; then - deluser $OSSEC_USER_EXEC -fi -if getent passwd $OSSEC_USER_REM >/dev/null; then - deluser $OSSEC_USER_REM -fi -if getent group $OSSEC_GROUP >/dev/null; then - delgroup --quiet $OSSEC_GROUP -fi - -# update system v init links -update-rc.d -f ossec-hids remove - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - - - -exit 0