#!/bin/bash # See https://we.riseup.net/riseup+tech/puppet echo "" echo "Updating puppet configuration..." echo "" unset GIT_DIR cd $PUPPET_DIR # lockfile comes from procmail package 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." # remove lock rm -f ~/puppet.lock