mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 05:27:01 +01:00
properly purge remaining config files on purge
This commit is contained in:
parent
2b2a91a564
commit
fc88194eca
4
debian/control
vendored
4
debian/control
vendored
@ -11,7 +11,7 @@ Vcs-Browser: https://github.com/ovh/debian-cis/
|
|||||||
Package: cis-hardening
|
Package: cis-hardening
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, bc, patch
|
Depends: ${misc:Depends}, bc, patch
|
||||||
Description: Suite of configurable scripts to audit or harden a Debian Wheezy or Jessie.
|
Description: Suite of configurable scripts to audit or harden a Debian.
|
||||||
Modular Debian 7/8 security hardening scripts based on cisecurity.org
|
Modular Debian security hardening scripts based on cisecurity.org
|
||||||
⟨cisecurity.org⟩ recommendations. We use it at OVH ⟨https://www.ovh.com⟩ to
|
⟨cisecurity.org⟩ recommendations. We use it at OVH ⟨https://www.ovh.com⟩ to
|
||||||
harden our PCI-DSS infrastructure.
|
harden our PCI-DSS infrastructure.
|
||||||
|
18
debian/postrm
vendored
Normal file
18
debian/postrm
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
purge)
|
||||||
|
rm -f /opt/cis-hardening/etc/conf.d/*.cfg
|
||||||
|
;;
|
||||||
|
|
||||||
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
# nothing to do
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "$0 called with unknown argument \`$1\`'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user