From 2973a776fb1a10515b75093381baf6f5aeb39564 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 29 Jun 2017 16:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E7=94=9F?= =?UTF-8?q?=E6=88=90certs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/base/Dockerfile | 2 +- docker/base/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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