diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-29 21:53:53 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-29 21:53:53 -0400 |
| commit | 5b25c5155312f626813e0d36b7933f5eba801dd2 (patch) | |
| tree | 6e264a92dbe13ed77821a5c5bd536b6701768442 /keys/update.sh | |
| parent | e9b933ea6ce85f5d4f4653b7e5e6a7c836fcc893 (diff) | |
| download | dotfiles-5b25c5155312f626813e0d36b7933f5eba801dd2.tar.gz dotfiles-5b25c5155312f626813e0d36b7933f5eba801dd2.tar.xz | |
Major dotfile cleanup
Diffstat (limited to 'keys/update.sh')
| -rw-r--r-- | keys/update.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/keys/update.sh b/keys/update.sh deleted file mode 100644 index 66d0e6a..0000000 --- a/keys/update.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# Easy script to throw in the crontab of a system to update SSH keys from -# my personal server via HTTPs. This implies that you trust all of the CAs -# on your system.... It's up to you whether you are going to risk that. -set -e -_timeout=5 -_url="https://www.rygel.us/etc/keys/personal" -keys="$HOME/.ssh/authorized_keys" - -_temp="$(mktemp)" - -if curl \ - --connect-timeout $_timeout \ - "$_url" > "$_temp" 2>/dev/null -then - cp "$_temp" "$keys" - chmod 600 "$keys" -fi - -rm "$_temp" |
