blob: 741e239a438bf5d96bd7c2d1ccdae8efd7626595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
sudo -u puppet /usr/local/sbin/update-puppet-conf.sh || echo "Updating puppet failed. Fix it manually."
# remove lock
rm -f ~/puppet.lock
|