diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile index eae4196..f925087 100644 --- a/docker/base/Dockerfile +++ b/docker/base/Dockerfile @@ -95,7 +95,7 @@ ADD docker/base/init_sql.php /home/ ADD docker/base/update_file.php /home/ ADD docker/base/entrypoint.sh /home/ RUN chmod -R 700 /home/init_sql.php && \ - chmod -R 700 /home/update_file.php && \ + chmod -R 700 /home/update_file.php && \ chmod -R 700 /home/entrypoint.sh ENV MYSQL_ROOT_PASSWORD=mysql \ diff --git a/docker/base/entrypoint.sh b/docker/base/entrypoint.sh index c42f6a7..50fe47b 100644 --- a/docker/base/entrypoint.sh +++ b/docker/base/entrypoint.sh @@ -34,8 +34,8 @@ service mysqld start /home/update_file.php "$domain" "$MYSQL_ROOT_PASSWORD" "$MYSQL_MAIL_PASSWORD" "$URL" "$WEBMAIL_URL" if [ ! -d "/ewomail/mysql/data/ewomail" -a ! -e "/ewomail/mail/first.runed" ]; then /home/init_sql.php "$domain" "$MYSQL_ROOT_PASSWORD" "$MYSQL_MAIL_PASSWORD" - # rm -f /etc/ssl/certs/dovecot.pem /etc/ssl/private/dovecot.pem - # cd /usr/local/dovecot/share/doc/dovecot/ && sh mkcert.sh + rm -f /etc/ssl/certs/dovecot.pem /etc/ssl/private/dovecot.pem + cd /usr/local/dovecot/share/doc/dovecot/ && sh mkcert.sh touch /ewomail/mail/first.runed fi