From a0e17dc73f8518c6755596cb770f9a4851597a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Thu, 8 Aug 2024 05:54:43 +0200 Subject: [PATCH] GeoIP databases: set the selinux context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/batcave/templates/geoip-download-databases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/batcave/templates/geoip-download-databases b/roles/batcave/templates/geoip-download-databases index abf135447b..55d3cdc079 100755 --- a/roles/batcave/templates/geoip-download-databases +++ b/roles/batcave/templates/geoip-download-databases @@ -21,4 +21,5 @@ wget --content-disposition --user={{ maxmind_account_id }} --password={{ maxmind sha256sum -c *.sha256 for tarball in *.tar.gz; do tar -xf "$tarball"; done -cp -a */*.mmdb "${outdir}" +cp -a -v */*.mmdb "${outdir}" +restorecon -v "${outdir}"/*.mmdb