# -*- mode: ruby -*- # vi: set ft=ruby : # Copyright Siemens AG, 2014 # SPDX-License-Identifier: GPL-2.0 LGPL-2.1 $add_proxy_settings = < /etc/profile.d/proxy.sh echo 'export ftp_proxy="http://$host_ip:3128"' >> /etc/profile.d/proxy.sh echo 'export http_proxy="http://$host_ip:3128"' >> /etc/profile.d/proxy.sh echo 'export https_proxy="https://$host_ip:3128"' >> /etc/profile.d/proxy.sh # load the proxy within current shell . /etc/profile.d/proxy.sh if ! sudo grep -q http_proxy /etc/sudoers; then sudo su -c 'sed -i "s/env_reset/env_reset\\nDefaults\\tenv_keep = \\"http_proxy https_proxy ftp_proxy\\"/" /etc/sudoers' fi PROXYSCRIPT $build_and_test = <