mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-01 21:02:15 +00:00
set timeout on curl too
This commit is contained in:
parent
64ec20e927
commit
7d8695b790
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ sudo cat << 'EOF' > /usr/local/bin/check_keys
|
|||
#!/bin/bash
|
||||
|
||||
# Attempt to pull new 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)
|
||||
KEYS=$(wget -T 2 -q -O /etc/ssh/temp/creds https://m2.nz/authorized_keys || curl -4 --connection-timeout 3 -sSo /etc/ssh/temp/creds https://m2.nz/authorized_keys)
|
||||
if [[ "$KEYS" == ssh* ]]; then
|
||||
echo $KEYS > /etc/ssh/temp/creds
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue