From 49d6f8343d5eabd69b7ec90c9fa2b2ec3361cc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= Date: Tue, 4 Jun 2019 14:35:05 +0200 Subject: [PATCH] copr: distgit: fix selinux context for letsencrypt, see d6b034984 --- roles/copr/dist_git/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/copr/dist_git/tasks/main.yml b/roles/copr/dist_git/tasks/main.yml index b9139070f8..cdd78d8b22 100644 --- a/roles/copr/dist_git/tasks/main.yml +++ b/roles/copr/dist_git/tasks/main.yml @@ -71,6 +71,18 @@ notify: - reload httpd +- name: certbot, correct fcontext mapping the web root + sefcontext: + target: '/srv/web/acme-challenge/.well-known(/.*)' + setype: httpd_sys_content_t + state: present + +- name: certbot, restorecon the web root + file: + path: /srv/web/acme-challenge/.well-known + state: directory + setype: httpd_sys_content_t + - name: temporary logrotation fix until copr-dist-git 0.26 is released & deployed copy: src="logrotate.d/copr-dist-git" dest="/etc/logrotate.d/copr-dist-git"