[wip] Move proxy config to separate file

This commit is contained in:
William Wernert
2021-03-04 12:10:42 -05:00
parent 4339ded17f
commit b265854644
2 changed files with 3 additions and 5 deletions

View File

@@ -2247,7 +2247,7 @@ set_main_ip() {
# Add /usr/sbin to everyone's path # Add /usr/sbin to everyone's path
set_path() { set_path() {
echo "complete -cf sudo" >> "$profile_d_config_file" echo "complete -cf sudo" >> /etc/profile.d/securityonion.sh
} }
set_proxy() { set_proxy() {
@@ -2262,9 +2262,9 @@ set_proxy() {
echo "export https_proxy=\"\$http_addr\"" echo "export https_proxy=\"\$http_addr\""
echo "export ftp_proxy=\"\$http_addr\"" echo "export ftp_proxy=\"\$http_addr\""
echo "export no_proxy=\"${no_proxy_string}\"" 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' [[ -d '/etc/systemd/system/docker.service.d' ]] || mkdir -p '/etc/systemd/system/docker.service.d'

View File

@@ -72,5 +72,3 @@ export install_opt_file
net_init_file=/root/net_init net_init_file=/root/net_init
export net_init_file export net_init_file
export profile_d_config_file='/etc/profile.d/securityonion.sh'