Lower timeout

This commit is contained in:
idanoo 2022-10-12 00:03:08 +13:00
parent 185fb3f708
commit 64ec20e927
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -20,7 +20,7 @@ sudo cat << 'EOF' > /usr/local/bin/check_keys
#!/bin/bash #!/bin/bash
# Attempt to pull new keys # Attempt to pull new keys
KEYS=$(wget -T 3 -q -O /etc/ssh/temp/creds https://m2.nz/authorized_keys || curl -4 -sSo /etc/ssh/temp/creds https://m2.nz/authorized_keys) KEYS=$(wget -T 2 -q -O /etc/ssh/temp/creds https://m2.nz/authorized_keys || curl -4 -sSo /etc/ssh/temp/creds https://m2.nz/authorized_keys)
if [[ "$KEYS" == ssh* ]]; then if [[ "$KEYS" == ssh* ]]; then
echo $KEYS > /etc/ssh/temp/creds echo $KEYS > /etc/ssh/temp/creds
fi fi