Browse Source

Update Dockerfile

Stefan Pejcic 1 year ago
parent
commit
b8ec438c18
1 changed files with 3 additions and 2 deletions
  1. 3 2
      docker/apache/Dockerfile

+ 3 - 2
docker/apache/Dockerfile

@@ -128,7 +128,8 @@ RUN sed -i \
     -e 's/^opcache.enable= .*/opcache.enable=1/' \
     -e 's|^;sendmail_path = .*|sendmail_path = "/usr/bin/msmtp -t"|' \
     /etc/php/8.2/fpm/php.ini
-RUN sed -i 's|^;sendmail_path = .*|sendmail_path = "/usr/bin/msmtp -t"|' /etc/php/8.2/fpm/php.ini
+RUN sed -i 's|;sendmail_path = *|sendmail_path = "/usr/bin/msmtp -t"|g' /etc/php/8.2/fpm/php.ini
+
 
 RUN sed -i \
     -e 's/^upload_max_filesize = .*/upload_max_filesize = 1024M/' \
@@ -138,7 +139,7 @@ RUN sed -i \
     -e 's/^max_execution_time = .*/max_execution_time = 600/' \
     -e 's/^opcache.enable= .*/opcache.enable=1/' \
     /etc/php/8.2/cli/php.ini
-RUN sed -i 's|^;sendmail_path = .*|sendmail_path = "/usr/bin/msmtp -t"|' /etc/php/8.2/cli/php.ini
+RUN sed -i 's|;sendmail_path = *|sendmail_path = "/usr/bin/msmtp -t"|g' /etc/php/8.2/cli/php.ini
 
 
 ########## EMAIL ##########