From b6d0eb0f63c6da837160f5f1cc172f0307b98919 Mon Sep 17 00:00:00 2001 From: Nikolay Mahotkin Date: Wed, 25 May 2016 11:31:38 +0300 Subject: [PATCH] Fixing applying ACLs for new projects * The issue was in the incorrect calling the script 'manage-projects': It should be invoked from user 'gerrit2' sharing user env. Change-Id: Ib987957e0e1a7f0c4951883ee64175b21293bdad --- murano-apps/Gerrit/package/Resources/scripts/periodic_puppet.sh | 2 +- murano-apps/Gerrit/package/Resources/scripts/post_deploy.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/murano-apps/Gerrit/package/Resources/scripts/periodic_puppet.sh b/murano-apps/Gerrit/package/Resources/scripts/periodic_puppet.sh index 1969a1a..aa965dc 100644 --- a/murano-apps/Gerrit/package/Resources/scripts/periodic_puppet.sh +++ b/murano-apps/Gerrit/package/Resources/scripts/periodic_puppet.sh @@ -12,4 +12,4 @@ GIT_SSL_NO_VERIFY=true /usr/bin/puppet apply ${CONF_DIR}/gerrit.pp # Log rotation is turned on in create_projects.pp # # TODO: Should be replaced by git hook -/usr/local/bin/manage-projects -v -d -l /var/log/manage_projects.log +su - gerrit2 -c "/usr/local/bin/manage-projects -v -d -l /var/log/manage_projects.log" diff --git a/murano-apps/Gerrit/package/Resources/scripts/post_deploy.pp b/murano-apps/Gerrit/package/Resources/scripts/post_deploy.pp index 8619132..27ac7b7 100644 --- a/murano-apps/Gerrit/package/Resources/scripts/post_deploy.pp +++ b/murano-apps/Gerrit/package/Resources/scripts/post_deploy.pp @@ -9,4 +9,4 @@ cron { "puppet": command => "/usr/local/bin/periodic_puppet.sh", hour => '*', minute => '*/5', -} \ No newline at end of file +}