remove hostname setting

This commit is contained in:
ALinuxNinja 2017-04-27 20:21:29 -04:00
parent d60a4538cf
commit 2e4e66766e
2 changed files with 0 additions and 4 deletions

View File

@ -11,7 +11,6 @@ services:
- ./data/postal:/opt/postal/config - ./data/postal:/opt/postal/config
- ./data/docker:/docker - ./data/docker:/docker
environment: environment:
- POSTAL_HOSTNAME=idontknow.nowhere.com
- MYSQL_ROOT_PASSWORD=changeme - MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=postal - MYSQL_DATABASE=postal
- RABBITMQ_DEFAULT_USER=postal - RABBITMQ_DEFAULT_USER=postal

View File

@ -10,9 +10,6 @@ if [[ $(cat /opt/postal/config/postal.yml| grep -i web_server |wc -l) == 0 ]]; t
cat /docker/webserver_bind.yml >> /opt/postal/config/postal.yml cat /docker/webserver_bind.yml >> /opt/postal/config/postal.yml
fi fi
## Set Hostname
sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml
## Set MySQL/RabbitMQ usernames/passwords ## Set MySQL/RabbitMQ usernames/passwords
### MySQL Main DB ### MySQL Main DB
sed -i -e '/main_db:/!b' -e ':a' -e "s/host.*/host: mysql/;t trail" -e 'n;ba' -e ':trail' -e 'n;btrail' /opt/postal/config/postal.yml sed -i -e '/main_db:/!b' -e ':a' -e "s/host.*/host: mysql/;t trail" -e 'n;ba' -e ':trail' -e 'n;btrail' /opt/postal/config/postal.yml