diff options
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..ca4f86f --- /dev/null +++ b/install.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -eo pipefail + +sudo cp sshd_config /etc/sshd_config + +HOME=$(getent passwd "$USER" | cut -d: -f6) +mkdir -p "$HOME/.local/bin/" +cp refresh_keys.sh "$HOME/.local/bin" + +JOB="17 * * * * $HOME/.local/bin/refresh_keys.sh" +( crontab -l 2>/dev/null | grep -vF 'replace.sh'; echo "$JOB" ) | crontab - + |
