do not give root a random password if login is already disabled by default

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2026-08-25 13:00:24 +02:00
committed by Simon L.
parent a95737744c
commit fee4903fef
6 changed files with 4 additions and 31 deletions
+1 -5
View File
@@ -31,7 +31,6 @@ RUN set -ex; \
supervisor \
tzdata \
ca-certificates \
openssl \
bind-tools \
netcat-openbsd; \
\
@@ -91,10 +90,7 @@ RUN set -ex; \
mkdir -p /usr/local/apache2/logs; \
chmod 777 -R /home/www-data; \
chmod 777 -R /usr/local/apache2/logs; \
rm -rf /usr/local/apache2/cgi-bin/; \
\
echo "root:$(openssl rand -base64 12)" | chpasswd; \
apk --no-cache del openssl
rm -rf /usr/local/apache2/cgi-bin/
USER www-data:www-data