Add fix 2

This commit is contained in:
Roman 2020-10-12 17:31:13 +03:00
parent 7e63b9a8b7
commit 523f221c25
3 changed files with 5 additions and 0 deletions

View file

@ -14,6 +14,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
adduser \
apt-utils \
bomstrip \
certbot \
htop \
libasound2 \
libboost-regex-dev \

View file

@ -185,6 +185,8 @@ Below is the complete list of parameters that can be set using environment varia
- **METRICS_HOST**: Defines StatsD listening host. Defaults to `localhost`.
- **METRICS_PORT**: Defines StatsD listening port. Defaults to `8125`.
- **METRICS_PREFIX**: Defines StatsD metrics prefix for backend services. Defaults to `ds.`.
- **LETS_ENCRYPT_DOMAINS**: Defines LETS_ENCRYPT_DOMAINS.
- **LETS_ENCRYPT_MAIL**: Defines LETS_ENCRYPT_MAIL.
## Installing ONLYOFFICE Document Server integrated with Community and Mail Servers

View file

@ -608,6 +608,8 @@ service nginx start
if [ ${LETS_ENCRYPT_DOMAINS} != "none" -a ${LETS_ENCRYPT_MAIL} != "none" ]; then
if [ ! -f "${SSL_CERTIFICATE_PATH}" -a ! -f "${SSL_KEY_PATH}" ]; then
letsencrypt
update_nginx_settings
service nginx restart
fi
fi