From e24a3673bfc79d3da3e794ff0ba20e3578793d8b Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Fri, 6 Apr 2018 15:29:02 +0200 Subject: [PATCH] use curl curl actually respect configured proxy settings, what wget does not seem to do --- 3.New_server_deployment/4.APT_upgrade/0_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3.New_server_deployment/4.APT_upgrade/0_setup.sh b/3.New_server_deployment/4.APT_upgrade/0_setup.sh index d95b8317..1cd0bf41 100755 --- a/3.New_server_deployment/4.APT_upgrade/0_setup.sh +++ b/3.New_server_deployment/4.APT_upgrade/0_setup.sh @@ -5,7 +5,7 @@ DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND apt-get update -apt-get install -y apt-transport-https +apt-get install -y apt-transport-https curl # move 50unattended-upgrades conf if any if [ -f /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist ]; then @@ -57,7 +57,7 @@ systemctl unmask nginx || true # APT panel if ( ! test -z ${SKYREACH_API_KEY} ); then echo "Adding skyreach.list to APT sources." - wget -q "https://${SKYREACH_HOST}/media/public.gpg" -O- | sudo apt-key add - + curl -s "https://${SKYREACH_HOST}/media/public.gpg" | sudo apt-key add - echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list fi -- GitLab