mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +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() {
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user