From 01bcbbb052f91e8593a08b86faf5e546c2e28bd3 Mon Sep 17 00:00:00 2001 From: mihalin Date: Sat, 22 Jan 2022 20:31:36 +0300 Subject: [PATCH] fix directory creation --- docker-entrypoint.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4f9dd3d..8b39087 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,8 +5,6 @@ if [ ! -z "${CUSTOM_CERT}" ]; then echo "Use custom certificate" if [ ! -f /cert/private.key ]; then 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}" fi fi