mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[wip] Move proxy config to separate file
This commit is contained in:
@@ -2247,7 +2247,7 @@ set_main_ip() {
|
||||
|
||||
# Add /usr/sbin to everyone's path
|
||||
set_path() {
|
||||
echo "complete -cf sudo" >> "$profile_d_config_file"
|
||||
echo "complete -cf sudo" >> /etc/profile.d/securityonion.sh
|
||||
}
|
||||
|
||||
set_proxy() {
|
||||
@@ -2262,9 +2262,9 @@ set_proxy() {
|
||||
echo "export https_proxy=\"\$http_addr\""
|
||||
echo "export ftp_proxy=\"\$http_addr\""
|
||||
echo "export no_proxy=\"${no_proxy_string}\""
|
||||
} >> "$profile_d_config_file"
|
||||
} > /etc/profile.d/so-proxy.sh
|
||||
|
||||
source "$profile_d_config_file"
|
||||
source /etc/profile.d/so-proxy.sh
|
||||
|
||||
[[ -d '/etc/systemd/system/docker.service.d' ]] || mkdir -p '/etc/systemd/system/docker.service.d'
|
||||
|
||||
|
||||
@@ -72,5 +72,3 @@ export install_opt_file
|
||||
|
||||
net_init_file=/root/net_init
|
||||
export net_init_file
|
||||
|
||||
export profile_d_config_file='/etc/profile.d/securityonion.sh'
|
||||
|
||||
Reference in New Issue
Block a user