Skip to content

Commit

Permalink
初始化时生成certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wu committed Jun 29, 2017
1 parent cf6668c commit 2973a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions docker/base/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2973a77

Please sign in to comment.