From c8ada82fd4b69330c805658f8ce9a5d09919a6b6 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Sat, 3 Dec 2011 04:59:49 +0100 Subject: enable updating of single hosts --- bin/updateConfig.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/updateConfig.sh b/bin/updateConfig.sh index 533b23b..7385f2e 100755 --- a/bin/updateConfig.sh +++ b/bin/updateConfig.sh @@ -4,7 +4,11 @@ BASEDIR=`dirname $(readlink -f $0)` cd ${BASEDIR}/../ -HOSTS=`cat ~/.ssh/config | egrep "^Host" | egrep -v "nohome|noshell|offline" | sed 's/^Host //' | sed 's/ #.*//' | tr '\n' ' ' | sed 's/ $//' ` +ALLHOSTS=`cat ~/.ssh/config | egrep "^Host" | egrep -v "nohome|noshell|offline" | sed 's/^Host //' | sed 's/ #.*//' | tr '\n' ' ' | sed 's/ $//' ` +HOSTS=${HOSTS:-$ALLHOSTS} + +echo "loaded keys:" +ssh-add -l echo "Fetch new load.sh" pssh -i --host "$HOSTS" "rm -f load.sh && wget -q http://pluto.fsinf.at/~astra/config/load.sh && chmod +x load.sh" -- cgit v1.2.3