]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Eeek. we want this sudo
authorPeter Palfrader <peter@palfrader.org>
Thu, 25 Apr 2013 14:51:48 +0000 (16:51 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 25 Apr 2013 14:51:48 +0000 (16:51 +0200)
modules/roles/files/static-mirroring/static-update-component

index d2abf22d1fbec8cc9ba220b570ed324fc8cfa9c4..2cae0b8b4c6059412bd62a4f088bacf701822dba 100755 (executable)
@@ -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