mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Fix Docker IP detection with different ifconfig output formats (#4376)
This commit is contained in:
parent
67e11ae1d8
commit
6fb78dab67
1 changed files with 2 additions and 0 deletions
|
|
@ -12,5 +12,7 @@ fi
|
|||
|
||||
cd ${BOULDERPATH}
|
||||
FAKE_DNS=$(ifconfig docker0 | grep "inet addr:" | cut -d: -f2 | awk '{ print $1}')
|
||||
[ -z "$FAKE_DNS" ] && FAKE_DNS=$(ifconfig docker0 | grep "inet " | xargs | cut -d ' ' -f 2)
|
||||
[ -z "$FAKE_DNS" ] && echo Unable to find the IP for docker0 && exit 1
|
||||
sed -i "s/FAKE_DNS: .*/FAKE_DNS: ${FAKE_DNS}/" docker-compose.yml
|
||||
docker-compose up -d
|
||||
|
|
|
|||
Loading…
Reference in a new issue