X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=initscripts%2Fpl_boot;h=20f44916ddf3958caf700a71663e954120f69790;hb=8b8fd00c0fb49747e4fca7cbf69a3590cb6324a0;hp=ce685c9a03635a323724c11c54bd37e7f52fac9d;hpb=b5b7d860157f6458aca2d69a30092ecd7fc5a616;p=bootcd.git diff --git a/initscripts/pl_boot b/initscripts/pl_boot index ce685c9..20f4491 100755 --- a/initscripts/pl_boot +++ b/initscripts/pl_boot @@ -1,5 +1,11 @@ #!/bin/bash +### make sure this output shows up in the console + +exec 2>&1 +exec > /dev/console + +### . /etc/init.d/pl_functions . /tmp/planet.cnf @@ -107,14 +113,12 @@ while : ; do if [[ $contact_count != 0 ]]; then - if [[ $on_backup_server == 1 ]]; then - echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from backup server in 30s" - else - echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from primary server in 30s" - fi + echo $(date "+%H:%M:%S") " pl_boot: next attempt in 30s, to fetch script from server at $CONNECT_BOOT_SERVER" /bin/sleep 30 fi + # June 2015 : using --tlsv1 instead of sslv3 that should be available + # on all myplc from f14 inclusive # assemble the curl transaction CURL_CMD="/usr/bin/curl \ --connect-timeout 60 \ @@ -126,7 +130,7 @@ while : ; do --form nonce=