update mounts
This commit is contained in:
parent
c509cac99c
commit
f0907ed0f5
|
@ -18,6 +18,9 @@ RUN git clone https://github.com/atech/postal /opt/postal \
|
|||
## Install gems required by postal
|
||||
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
|
||||
ADD scripts/start.sh /start.sh
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Generate keys if they do not exist
|
||||
if [[ ! -f /opt/postal/config/signing.key ]]; then
|
||||
/opt/postal/bin/postal initialize-config
|
||||
fi
|
||||
## Refresh config
|
||||
cp -R /opt/postal/config-original/* /opt/postal/config
|
||||
|
||||
## Generate keys
|
||||
/opt/postal/bin/postal initialize-config
|
||||
|
||||
## Set Hostname
|
||||
sed -i "s/postal\.example\.com/$POSTAL_HOSTNAME/" /opt/postal/config/postal.yml
|
||||
|
|
Loading…
Reference in New Issue
Block a user