diff options
Diffstat (limited to 'hooks/build-os-post/70-cleanup-etc')
| -rwxr-xr-x | hooks/build-os-post/70-cleanup-etc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hooks/build-os-post/70-cleanup-etc b/hooks/build-os-post/70-cleanup-etc new file mode 100755 index 0000000..97e2e8b --- /dev/null +++ b/hooks/build-os-post/70-cleanup-etc @@ -0,0 +1,18 @@ +#!/bin/bash -xe +set -o pipefail + +# remove local self-signed snakeoil certificate +find "$root"/etc/ssl/certs -maxdepth 1 -lname ssl-cert-snakeoil.pem -delete +rm -f -- \ + ssl/private/ssl-cert-snakeoil.key \ + ssl/certs/ssl-cert-snakeoil.pem + +# cleanup some additional things in etc +pushd "${root:?}"/etc +rm -f -- \ + resolv.conf \ + group- \ + gshadow- \ + passwd- \ + shadow- + |
