uucp/update.sh

16 lines
276 B
Bash
Raw Normal View History

2019-02-28 16:31:58 +00:00
#!/bin/bash
# "Updating Git"
2019-02-28 16:31:58 +00:00
cd $HOME/uucp
git pull --quiet
2019-02-28 16:31:58 +00:00
# "Updating SSH"
2019-02-28 16:31:58 +00:00
cp ~/uucp/ssh/authorized_keys ~/.ssh/authorized_keys
2019-03-01 20:11:54 +00:00
chmod 644 ~/.ssh/authorized_keys
2019-02-28 16:31:58 +00:00
2019-03-26 11:04:50 +00:00
if [ -f ~/.ssh/authorized_keys.local ]; then
cat ~/.ssh/authorized_keys.local >> ~/.ssh/authorized_keys
fi
2019-02-28 16:31:58 +00:00