summaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-update
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-06-23 16:08:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-06-23 16:08:30 -0300
commit00ac0f8dcd83209f4ff2629bb04aa16af748832b (patch)
treed16e980d40e3352ea88034a411d1d1004c7aea04 /share/hydractl/puppet-update
parent08d3bfe235980d5e8cd4f009ae5750b6a364e0ae (diff)
downloadhydra-00ac0f8dcd83209f4ff2629bb04aa16af748832b.tar.gz
hydra-00ac0f8dcd83209f4ff2629bb04aa16af748832b.tar.bz2
Avoid reparsing of puppet config by just fixing perms if needed
Diffstat (limited to 'share/hydractl/puppet-update')
-rwxr-xr-xshare/hydractl/puppet-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydractl/puppet-update b/share/hydractl/puppet-update
index 378ae3f..bd56997 100755
--- a/share/hydractl/puppet-update
+++ b/share/hydractl/puppet-update
@@ -18,7 +18,9 @@
if [ -x '/usr/local/sbin/update-puppet-conf.sh' ]; then
/usr/local/sbin/update-puppet-conf.sh
- chown -R puppet.puppet /etc/puppet
+
+ # Avoid reparsing of puppet config by just fixing perms if needed.
+ chown --from=root:root -R puppet.puppet /etc/puppet
else
echo "Could not find /usr/local/sbin/update-puppet-conf.sh"
exit 1