Skip to content

Commit 1b067e7

Browse files
committed
fix: bro idk how to sed
1 parent f8cde46 commit 1b067e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ RUN set -eux; \
8080
\
8181
apk del .build-deps
8282

83-
RUN echo 'Wait for it...' \
84-
&& sed -i 's/CipherString = DEFAULT@SECLEVEL=2/CipherString = DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf \
85-
|| echo 'CipherString = DEFAULT@SECLEVEL=1' >> /etc/ssl/openssl.cnf
86-
87-
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
83+
RUN if grep -q "SECLEVEL=2" /etc/ssl/openssl.cnf; then \
84+
sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; \
85+
else \
86+
echo 'CipherString = DEFAULT@SECLEVEL=1' >> /etc/ssl/openssl.cnf; \
87+
fi
8888

8989
RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
9090
COPY docker/php/conf.d/symfony.ini $PHP_INI_DIR/conf.d/symfony.ini

0 commit comments

Comments
 (0)