From 24f4c048cc39cc032e8e040ee1fbb31de0db0459 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Tue, 2 Jun 2020 13:45:22 -0400 Subject: [PATCH] Add the primary hostname to /etc/hosts --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf2d9298..ed1ef784 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,11 +18,12 @@ before_install: - echo "UMASK=$(umask)" - echo "==== System update ====" - sudo apt-get update - - echo "==== Install test/qa packages ====" + - echo "==== Install QA/test data ====" - sudo apt-get -y install python3-dnspython - - echo "==== Copy pre-built files ====" - sudo mkdir -p /home/user-data/ssl - sudo cp ./tests/assets/ssl/dh2048.pem /home/user-data/ssl + - echo "==== Add the PRIMARY_HOSTNAME to /etc/hosts ====" + - sudo echo "$(source setup/functions.sh; get_default_privateip 4) $PRIMARY_HOSTNAME" >> /etc/hosts install: - sudo ./setup/start.sh -v