fix directory creation

This commit is contained in:
mihalin 2022-01-22 20:31:36 +03:00
parent 47cd78a349
commit 01bcbbb052

View File

@ -5,8 +5,6 @@ if [ ! -z "${CUSTOM_CERT}" ]; then
echo "Use custom certificate" echo "Use custom certificate"
if [ ! -f /cert/private.key ]; then if [ ! -f /cert/private.key ]; then
echo "Generate new certificate" echo "Generate new certificate"
rm -rf /cert
mkdir /cert
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 10000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=${WEBHOOK_HOST}" openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 10000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=${WEBHOOK_HOST}"
fi fi
fi fi