Use current juju proxy config when running sync.

Adds lines to source current juju proxy environment variables.

Closes-Bug: #1843486

Change-Id: I2b461ca6112839effcd7efa3bd9d821f92857584
This commit is contained in:
Alex Balderson 2019-11-13 14:37:45 -08:00
parent 02299812b4
commit 33b9da2bc5
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
if [ -f /etc/juju-proxy.conf ]; then
if [ -f /etc/profile.d/juju-proxy.sh ]; then
source /etc/profile.d/juju-proxy.sh
elif [ -f /etc/juju-proxy.conf ]; then
source /etc/juju-proxy.conf
elif [ -f /home/ubuntu/.juju-proxy ]; then
source /home/ubuntu/.juju-proxy