nginx/docker/init-docker
Deon George 447262feac
Some checks failed
Create Docker Image / Final Docker Image Manifest (push) Blocked by required conditions
Create Docker Image / Build Docker Image (x86_64) (push) Failing after 52s
Create Docker Image / Build Docker Image (arm64) (push) Has been cancelled
Change to gitea workflow
2024-10-12 22:23:15 +11:00

14 lines
393 B
Bash
Executable File

#!/bin/sh
TMPDIR=/tmp
LEGODIR=/etc/nginx/conf.d/ssl/lego
# Create our MD5 of our certifcates in /tmp
for cert in $(lego --path ${LEGODIR} list |grep Certificate\ Path|awk '{print $3}'); do
OUTPUT=$(basename ${cert})
echo "- Creating MD5 of [${cert}] in [${TMPDIR}/${OUTPUT}]"
cat ${cert} | md5sum > ${TMPDIR}/${OUTPUT}.md5
done
exec /usr/sbin/nginx -g "daemon off;"