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
|
## 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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user