diff --git a/setup/so-functions b/setup/so-functions index ff58bfc09..26593cdaa 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -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' diff --git a/setup/so-variables b/setup/so-variables index cd6478fa7..a2fdf03c6 100644 --- a/setup/so-variables +++ b/setup/so-variables @@ -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'