Merge pull request 'feat: fix selinux permissions each sync' (#80) from neoloc/selinx_for_reposync into develop
Reviewed-on: unkinben/puppet-prod#80
This commit is contained in:
commit
1cf2a5a579
@ -1,5 +1,7 @@
|
||||
# setup the autosyncer
|
||||
class profiles::reposync::autosyncer {
|
||||
class profiles::reposync::autosyncer (
|
||||
Stdlib::Absolutepath $basepath = '/data/repos',
|
||||
) {
|
||||
|
||||
# Ensure the autosyncer script is present and executable
|
||||
file { '/usr/local/bin/autosyncer':
|
||||
|
||||
@ -88,4 +88,7 @@ for conf in /etc/reposync/conf.d/*.conf; do
|
||||
# After syncing each repo, fix the repository metadata
|
||||
create_repo_metadata "${snap_path}"
|
||||
|
||||
# Update selinux
|
||||
restorecon <%= @basepath %>
|
||||
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user