}
componentlist=/etc/static-components.conf
+. /etc/staticsync.conf
+if ! [ -n "$staticuser" ]; then
+ echo >&2 "staticuser not configured!"
+ exit 1
+fi
if [ "$#" = 1 ]; then
component="$1"
exit 1
fi
-if [ "`id -nu`" != "staticsync" ]; then
- sudo -u staticsync static-update-component "$@"
+if [ "`id -nu`" != "$staticuser" ]; then
+ sudo -u "$staticuser" static-update-component "$@"
else
ssh -o AddressFamily=inet -t -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "$masterhost" static-master-update-component "$component"
fi