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

Changed APT setup.

parent 80e0cda5
No related branches found
No related tags found
No related merge requests found
...@@ -23,21 +23,6 @@ if [ "${PROXY}" = "1" ]; then ...@@ -23,21 +23,6 @@ if [ "${PROXY}" = "1" ]; then
fi fi
fi fi
# 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 # migrate to Ubuntu 16.04 / apply sources.list
if ( rgrep '14.04' /etc/lsb-release >/dev/null ); then if ( rgrep '14.04' /etc/lsb-release >/dev/null ); then
echo "Upgrading to Ubuntu 16.04." echo "Upgrading to Ubuntu 16.04."
...@@ -53,6 +38,20 @@ else ...@@ -53,6 +38,20 @@ else
apt-get dist-upgrade -y apt-get dist-upgrade -y
fi fi
# APT https support
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
# unattended-upgrades # unattended-upgrades
echo "Installing and configuring unattended-upgrades." echo "Installing and configuring unattended-upgrades."
apt-get install -y unattended-upgrades apt-get install -y unattended-upgrades
......
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