summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 17:23:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 17:23:59 -0200
commit55851d5607bfea2cbc79aa2ec269559b2b6ec6fc (patch)
treed19f8d3e1c202749fa2142d265f2aed46ee6e828
parent9d6f04b5fbac460442e7a698e78e95ebf950aca2 (diff)
downloadpuppet-puppet-55851d5607bfea2cbc79aa2ec269559b2b6ec6fc.tar.gz
puppet-puppet-55851d5607bfea2cbc79aa2ec269559b2b6ec6fc.tar.bz2
Running post-update using sudo
-rw-r--r--files/post-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/post-update.sh b/files/post-update.sh
index 2d266a3..741e239 100644
--- a/files/post-update.sh
+++ b/files/post-update.sh
@@ -13,7 +13,7 @@ cd $PUPPET_DIR
lockfile ~/puppet.lock
# call external SUID script that will update PUPPET_DIR
-/usr/local/sbin/update-puppet-conf.sh || echo "Updating puppet failed. Fix it manually."
+sudo -u puppet /usr/local/sbin/update-puppet-conf.sh || echo "Updating puppet failed. Fix it manually."
# remove lock
rm -f ~/puppet.lock