Fix sourcing of proxy related environment variables

Juju has changed where it stores proxy related environemnt
variables on units:
223b8db274

Update helper script to source from the correct location.

Change-Id: I506de446df05051acc7844323e5b5d5a5495f9bf
Closes-Bug: #1399622
This commit is contained in:
Frode Nordahl 2019-02-14 11:11:15 +01:00
parent 87c159c473
commit 663a15c5fe
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
#!/bin/bash
test -f /home/ubuntu/.juju-proxy && source /home/ubuntu/.juju-proxy
if [ -f /etc/juju-proxy.conf ]; then
source /etc/juju-proxy.conf
elif [ -f /home/ubuntu/.juju-proxy ]; then
source /home/ubuntu/.juju-proxy
fi
exec /usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py