diff options
Diffstat (limited to 'bin/updateConfig.sh')
| -rwxr-xr-x | bin/updateConfig.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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" |
