Skip to content

Commit bc1a3f7

Browse files
mhuttermartini-source
authored andcommitted
fix: Prevent gawk from overwriting awk symlinks
Restore AWK symlink - the entrypoint script assumes busybox awk, while our transform-alert-message script assumes GNU awk. Signed-off-by: Manuel Hutter <manuel@hutter.io>
1 parent a8eadec commit bc1a3f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ USER root
3030
RUN set -x && \
3131
# Install additional required tools \
3232
apk add --no-cache clamav-clamdscan coreutils gawk && \
33+
# Restore AWK symlink - the entrypoint script assumes busybox awk, while \
34+
# our transform-alert-message script assumes GNU awk. \
35+
ln -sfv /bin/busybox /usr/bin/awk && \
3336
# We terminate TLS on the proxy; so remove all SSL config from the vhosts \
3437
sed -i '/<VirtualHost \*:${SSL_PORT}>/,/<\/VirtualHost>/d' /usr/local/apache2/conf/extra/httpd-vhosts.conf && \
3538
sed -i '/Include .*httpd-ssl.conf/d' /usr/local/apache2/conf/httpd.conf && \

0 commit comments

Comments
 (0)