Browse Source

sync: create initial .ssh/authorized_keys if missing

master
Alejandro Mery 11 years ago
parent
commit
a6a55fe684
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      sync.sh

+ 7
- 0
sync.sh

@ -33,6 +33,13 @@ if [ -s "$ak" ]; then
fi
fi
done < $ak > $ak~
else
touch $ak
for x in amery@geeks.cl \
amery@builder.geeks.cl \
amery@shell.easy-cloud.net; do
cat .ssh/$x.pub
done > $ak~
fi
if ! cmp $ak $ak~; then
diff -u $ak $ak~

Loading…
Cancel
Save