From 8332d4f374aeeda8d2aa5a243addf5141325c766 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 10 Feb 2024 15:19:12 +1100 Subject: [PATCH] fix: recursive restorecon for reposync - set reposync to restore selinux controls on all files in the new snap_path --- site/profiles/templates/reposync/autosyncer.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/profiles/templates/reposync/autosyncer.erb b/site/profiles/templates/reposync/autosyncer.erb index cd6c963..4f48e58 100644 --- a/site/profiles/templates/reposync/autosyncer.erb +++ b/site/profiles/templates/reposync/autosyncer.erb @@ -89,6 +89,6 @@ for conf in /etc/reposync/conf.d/*.conf; do create_repo_metadata "${snap_path}" # Update selinux - restorecon <%= @basepath %> + restorecon -R ${snap_path} done