challenge: Override passwd to include a timer (for shadow upload)

This commit is contained in:
Pierre-Olivier Mercier 2022-03-01 18:06:05 +01:00
parent 24e7005e41
commit 7b1cf513a5
2 changed files with 10 additions and 0 deletions

View File

@ -71,5 +71,6 @@ COPY --from=mirror /out/ /
COPY ssl/ec_cert.pem /usr/share/ca-certificates/nemunai.re/cert.pem
COPY lib/ /lib/
COPY passwd.sh /bin/passwd
RUN echo "nemunai.re/cert.pem" >> /etc/ca-certificates.conf && update-ca-certificates

9
pkg/challenge/passwd.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
/usr/bin/passwd
for i in $(seq 12)
do
echo -n .
sleep 0.4
done
echo