fix: Create missing directory

This commit is contained in:
2025-08-02 23:08:36 +02:00
parent 7d66dafc8b
commit 04a25ed27d
+1
View File
@@ -8,6 +8,7 @@ if [ -f "$CERT_PATH" ] && [ -f "$KEY_PATH" ]; then
echo "✅ Real certificate found — starting full HTTPS Nginx"
else
echo "⚠️ No certificate found — starting Nginx with self-signed TLS fallback"
mkdir -p /etc/letsencrypt/live/api.2martens.de
ln -sf /etc/nginx/ssl/selfsigned.crt /etc/letsencrypt/live/api.2martens.de/fullchain.pem
ln -sf /etc/nginx/ssl/selfsigned.key /etc/letsencrypt/live/api.2martens.de/privkey.pem
fi