From: Peter Palfrader Date: Thu, 25 Apr 2013 14:51:48 +0000 (+0200) Subject: Eeek. we want this sudo X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=96f90b2ca6cb2999b42749808e89bd8bba0b87d8;p=mirror%2Fdsa-puppet.git Eeek. we want this sudo --- diff --git a/modules/roles/files/static-mirroring/static-update-component b/modules/roles/files/static-mirroring/static-update-component index d2abf22d1..2cae0b8b4 100755 --- a/modules/roles/files/static-mirroring/static-update-component +++ b/modules/roles/files/static-mirroring/static-update-component @@ -73,7 +73,7 @@ if [ "$srchost" = "$thishost" ] && ! [ -d "$srcdir" ]; then fi if [ "`id -nu`" != "staticsync" ]; then - static-update-component "$@" + sudo -u staticsync static-update-component "$@" else ssh -o AddressFamily=inet -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "$masterhost" static-master-update-component "$component" fi