]> gitweb.fluxo.info Git - hydra.git/commitdiff
Avoid reparsing of puppet config by just fixing perms if needed
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jun 2012 19:08:30 +0000 (16:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jun 2012 19:08:30 +0000 (16:08 -0300)
share/hydractl/puppet-update

index 378ae3fda8c2ba2726a31a48ca125d046765a4c6..bd569971435fa94bcef20437d55ccc6facd6d444 100755 (executable)
@@ -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