Mercurial > hg > cc > valhalla
view bin/setup @ 1:b071cc318d10 default tip
long ago
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 28 Aug 2025 10:51:05 +0100 |
| parents | fdd3f8a16fd4 |
| children |
line wrap: on
line source
#!/bin/bash SHARED=/home/shared/ht link () { rm -f "$2" ln -s "$1" "$2" } link $SHARED $HOME/shared link $SHARED/.profile $HOME/.profile link $SHARED/.ia $HOME/.ia mkdir -p $HOME/.ssh chmod 700 $HOME/.ssh if [ -f $HOME/.ssh/authorized_keys ] then if cmp -s $SHARED/.ssh/authorized_keys $HOME/.ssh/authorized_keys then : else cat $SHARED/.ssh/authorized_keys >> $HOME/.ssh/authorized_keys fi else cp $SHARED/.ssh/authorized_keys $HOME/.ssh/authorized_keys chmod 600 $HOME/.ssh/authorized_keys fi
