Skip to content

Commit

Permalink
fix: Prevent gawk from overwriting awk symlinks
Browse files Browse the repository at this point in the history
 Restore AWK symlink - the entrypoint script assumes busybox awk, while
 our transform-alert-message script assumes GNU awk.

Signed-off-by: Manuel Hutter <[email protected]>
  • Loading branch information
mhutter authored and martini-source committed Feb 21, 2025
1 parent a8eadec commit bc1a3f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ USER root
RUN set -x && \
# Install additional required tools \
apk add --no-cache clamav-clamdscan coreutils gawk && \
# Restore AWK symlink - the entrypoint script assumes busybox awk, while \
# our transform-alert-message script assumes GNU awk. \
ln -sfv /bin/busybox /usr/bin/awk && \
# We terminate TLS on the proxy; so remove all SSL config from the vhosts \
sed -i '/<VirtualHost \*:${SSL_PORT}>/,/<\/VirtualHost>/d' /usr/local/apache2/conf/extra/httpd-vhosts.conf && \
sed -i '/Include .*httpd-ssl.conf/d' /usr/local/apache2/conf/httpd.conf && \
Expand Down

0 comments on commit bc1a3f7

Please sign in to comment.