mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
Allow boulder-fetch.sh run with ip from iproute2 (#4620)
This commit is contained in:
parent
0db668f67b
commit
51ae69698d
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,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" ] && FAKE_DNS=$(ip addr show dev docker0 | grep "inet " | xargs | cut -d ' ' -f 2 | cut -d '/' -f 1)
|
||||
[ -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