diff --git a/build/run/docker-entrypoint/init.d/20-nginx.sh b/build/run/docker-entrypoint/init.d/20-nginx.sh index 2b6c6a1..9901131 100755 --- a/build/run/docker-entrypoint/init.d/20-nginx.sh +++ b/build/run/docker-entrypoint/init.d/20-nginx.sh @@ -38,6 +38,9 @@ chown ${MYVEMAIL_NGINX_USERGROUP}:${MYVEMAIL_NGINX_USERGROUP} /usr/share/webapps chown ${MYVEMAIL_NGINX_USERGROUP}:${MYVEMAIL_NGINX_USERGROUP} /usr/share/webapps/roundcube/plugins/password/config.inc.php chmod 0600 /usr/share/webapps/roundcube/plugins/password/config.inc.php +# Port +sed "s/{{MYVEMAIL_PORT}}/${MYVEMAIL_PORT:-80}/" -i $(find /etc/nginx -type f -name "default*") + # Start services /usr/sbin/php-fpm* -D nginx