From a585b0752214c3fe5b7e26b4bde15674419fd784 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 22 Mar 2021 04:48:30 -0400 Subject: [PATCH] fix: properly fetch the internal ip on ubuntu 18.04 --- .github/commands/ci-setup | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/commands/ci-setup b/.github/commands/ci-setup index 92d07331c..43c3ac6f6 100755 --- a/.github/commands/ci-setup +++ b/.github/commands/ci-setup @@ -2,12 +2,9 @@ set -eo pipefail set -x -echo "=====> ifconfig" -ifconfig - echo "=====> set hostname" hostname -internal_ip="$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')" +internal_ip="$(ifconfig eth0 | grep 'inet ' | awk '{print $2}')" sudo hostname "dokku.me" echo "dokku.me" | sudo tee /etc/hostname hostname