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 d2abf22..2cae0b8 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