From 55851d5607bfea2cbc79aa2ec269559b2b6ec6fc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 Jan 2013 17:23:59 -0200 Subject: Running post-update using sudo --- files/post-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3