From 9101c4572d37b8c60b638a5413e721892973972b Mon Sep 17 00:00:00 2001 From: Lan Dong Si Hoang Date: Thu, 3 Sep 2020 15:55:06 +0700 Subject: [PATCH] Fix syntax --- apache2/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache2/Dockerfile b/apache2/Dockerfile index d31fcfe..ec824f4 100644 --- a/apache2/Dockerfile +++ b/apache2/Dockerfile @@ -20,9 +20,9 @@ WORKDIR /var/www/ COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf ARG APACHE_INSTALL_HTTP2=false +RUN mkdir /etc/apache2/ssl 2> /dev/null RUN if [ ${APACHE_INSTALL_HTTP2} = true ]; then \ - mkdir /etc/apache2/ssl 2> /dev/null && \ - && openssl genrsa -out "/etc/apache2/ssl/ssl_site.key" 2048 \ + openssl genrsa -out "/etc/apache2/ssl/ssl_site.key" 2048 \ && openssl rand -out /root/.rnd -hex 256 \ && openssl req -new -key "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.csr" -subj "/CN=site.com/O=LGS/C=IT" \ && openssl x509 -req -days 365 -in "/etc/apache2/ssl/ssl_site.csr" -signkey "/etc/apache2/ssl/ssl_site.key" -out "/etc/apache2/ssl/ssl_site.crt" \