SO Setup - Add smarts for CentOS to run through apt-cacher

This commit is contained in:
Mike Reeves
2018-09-11 21:10:55 -04:00
parent 5af998835a
commit e03712e8e2

View File

@@ -588,10 +588,16 @@ set_initial_firewall_policy() {
}
set_updates() {
if [ $OS == 'centos' ]; then
echo "proxy=http://$MSRV:3142" >> /etc/yum.conf
else
# Set it up so the updates roll through the master
echo "Acquire::http::Proxy \"http://$MSRV:3142\";" > /etc/apt/apt.conf.d/00Proxy
echo "Acquire::https::Proxy \"http://$MSRV:3142\";" >> /etc/apt/apt.conf.d/00Proxy
fi
}
set_node_type() {