v1.2 erreur dans le script du proxy

This commit is contained in:
jm.dupuy 2024-06-13 11:23:51 +02:00
parent 78c9636429
commit 4becc84b53

View File

@ -197,12 +197,12 @@ class Homestead
#Add proxy to environment
config.vm.provision 'shell' do |s|
s.inline = "sudo echo 'http_proxy http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'https_proxy http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'no_proxy localhost,127.0.0.1' >> /etc/environment ; sudo echo 'HTTP_PROXY http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'HTTPS_PROXY http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'NO_PROXY localhost,127.0.0.1' >> /etc/environment"
s.inline = "sudo echo 'http_proxy=http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'https_proxy=http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'no_proxy localhost,127.0.0.1' >> /etc/environment ; sudo echo 'HTTP_PROXY=http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'HTTPS_PROXY=http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'NO_PROXY=localhost,127.0.0.1' >> /etc/environment"
end
#Add proxy to vagrant user
config.vm.provision 'shell' do |s|
s.inline = "sudo echo 'export http_proxy http://10.121.38.1:8080' >> /home/vagrant/.bashrc ; sudo echo 'export https_proxy http://10.121.38.1:8080' >> /home/vagrant/.bashrc"
s.inline = "sudo echo 'export http_proxy=http://10.121.38.1:8080' >> /home/vagrant/.bashrc ; sudo echo 'export https_proxy=http://10.121.38.1:8080' >> /home/vagrant/.bashrc"
end
# Copy User Files Over to VM