1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00:00

Add the primary hostname to /etc/hosts

This commit is contained in:
downtownallday 2020-06-02 13:45:22 -04:00
parent c9a4aec7ed
commit 24f4c048cc

View File

@ -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