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

Fixed APT initialization.

parent 487cf92b
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,7 @@ apt-get install -y aptitude apt-transport-https ...@@ -22,8 +22,7 @@ apt-get install -y aptitude apt-transport-https
apt-get dist-upgrade -y apt-get dist-upgrade -y
# modify sources.list to use ubicast cache # modify sources.list to use ubicast cache
grep ${APT_CACHE_HOST} /etc/apt/sources.list if ( ! grep ${APT_CACHE_HOST} /etc/apt/sources.list ); then
if [ $? = 1 ]; then
sed -i "s@http://@http://${APT_CACHE_HOST}/@" /etc/apt/sources.list sed -i "s@http://@http://${APT_CACHE_HOST}/@" /etc/apt/sources.list
fi fi
...@@ -46,4 +45,4 @@ APT::Periodic::Unattended-Upgrade "1"; ...@@ -46,4 +45,4 @@ APT::Periodic::Unattended-Upgrade "1";
EOF EOF
# resolvconf # resolvconf
aptitude purge -y resolvconf apt-get purge -y resolvconf
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