From 8fa425049a8732ca9155cb48d411e755d9110e01 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Fri, 6 Apr 2018 15:41:10 +0200
Subject: [PATCH] Revert "use curl"

This reverts commit e24a3673bfc79d3da3e794ff0ba20e3578793d8b.
---
 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 1cd0bf41..d95b8317 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 curl
+apt-get install -y apt-transport-https
 
 # 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."
-	curl -s "https://${SKYREACH_HOST}/media/public.gpg" | sudo apt-key add -
+	wget -q "https://${SKYREACH_HOST}/media/public.gpg" -O- | sudo apt-key add -
 	echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
 fi
 
-- 
GitLab