update mounts

This commit is contained in:
ALinuxNinja 2017-04-27 05:38:13 -04:00
parent c509cac99c
commit f0907ed0f5
2 changed files with 8 additions and 4 deletions

View File

@ -18,6 +18,9 @@ RUN git clone https://github.com/atech/postal /opt/postal \
## Install gems required by postal ## Install gems required by postal
RUN /opt/postal/bin/postal bundle /opt/postal/vendor/bundle RUN /opt/postal/bin/postal bundle /opt/postal/vendor/bundle
## Move config folder
RUN mv /opt/postal/config /opt/postal/config-original
## Stick in startup script ## Stick in startup script
ADD scripts/start.sh /start.sh ADD scripts/start.sh /start.sh

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
## Generate keys if they do not exist ## Refresh config
if [[ ! -f /opt/postal/config/signing.key ]]; then cp -R /opt/postal/config-original/* /opt/postal/config
/opt/postal/bin/postal initialize-config
fi ## Generate keys
/opt/postal/bin/postal initialize-config
## Set Hostname ## Set Hostname
sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml