From 08a30309a5890373ddec826e84a135a59dabb7c6 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 14 Apr 2016 14:48:27 +0200 Subject: [PATCH] Add timeout to DigitalOcean metadata fetching Add a 5 second timeout to DigitalOcean metadata fetching, e.g. to use this script with other VPS services. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 95ebb63..bf99b25 100755 --- a/install.sh +++ b/install.sh @@ -446,7 +446,7 @@ stage1_install() { rm /d2a/work/archroot/dosync.pkg.tar local authkeys - if authkeys="$(wget -qO- ${meta_base}public-keys)" && test -z "${authkeys}"; then + if authkeys="$(wget -qO- -T5 -t1 ${meta_base}public-keys)" && test -z "${authkeys}"; then log "*** WARNING ***" log "SSH public keys are not configured for this droplet." log "PermitRootLogin will be enabled in sshd_config to permit root logins over SSH."