Skip to content
Snippets Groups Projects
Commit e24a3673 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

use curl

curl actually respect configured proxy settings, what wget does not seem to do
parent acf5b4e0
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ DEBIAN_FRONTEND=noninteractive ...@@ -5,7 +5,7 @@ DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND export DEBIAN_FRONTEND
apt-get update apt-get update
apt-get install -y apt-transport-https apt-get install -y apt-transport-https curl
# move 50unattended-upgrades conf if any # move 50unattended-upgrades conf if any
if [ -f /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist ]; then if [ -f /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist ]; then
...@@ -57,7 +57,7 @@ systemctl unmask nginx || true ...@@ -57,7 +57,7 @@ systemctl unmask nginx || true
# APT panel # APT panel
if ( ! test -z ${SKYREACH_API_KEY} ); then if ( ! test -z ${SKYREACH_API_KEY} ); then
echo "Adding skyreach.list to APT sources." 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 echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment