mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-09-18 17:27:24 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user