summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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