mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 19:22:54 +01:00
SO Setup - Add smarts for CentOS to run through apt-cacher
This commit is contained in:
@@ -588,10 +588,16 @@ set_initial_firewall_policy() {
|
|||||||
}
|
}
|
||||||
set_updates() {
|
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
|
# 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::http::Proxy \"http://$MSRV:3142\";" > /etc/apt/apt.conf.d/00Proxy
|
||||||
echo "Acquire::https::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() {
|
set_node_type() {
|
||||||
|
|||||||
Reference in New Issue
Block a user