Skip to content
Snippets Groups Projects
Commit 80e0cda5 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed APT setup.

parent 0d0c13c5
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,6 @@ if ( ! test -z ${APT_CACHE_HOST} ); then
fi
fi
# 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 -
echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
fi
# APT proxy
if [ "${PROXY}" = "1" ]; then
if [ "${PROXY_AUTHENTICATION}" = "1" ]; then
......@@ -30,9 +23,19 @@ if [ "${PROXY}" = "1" ]; then
fi
fi
# update
# APT https support
apt-get update
apt-get install -y apt-transport-https
# 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 -
echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
fi
# update
apt-get update
apt-get dist-upgrade -y
# migrate to Ubuntu 16.04 / apply sources.list
......
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