We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bf890a commit 968241eCopy full SHA for 968241e
2 files changed
Dockerfile
@@ -2,7 +2,7 @@ FROM alpine:3.16
2
3
# Actualizar el sistema e instalar dependencias
4
RUN apk update && apk upgrade && \
5
- apk add --no-cache sudo nginx certbot
+ apk add --no-cache sudo nginx certbot sed openssl
6
7
# Configuración del directorio raíz para webs
8
ENV WEB_ROOT_PATH=/var/www/certbot
start.sh
@@ -1,8 +1,9 @@
1
-#!/bin/bash
+#!/bin/sh
# Check env vars with value
for VAR in DOMAIN WEB_ROOT_PATH EMAIL CERT_PATH CERT_PASSWORD; do
- if [ -z "${!VAR}" ]; then
+ eval "value=\$$VAR"
+ if [ -z "$value" ]; then
echo "Error: La variable de entorno ${VAR} no está definida."
exit 1
9
fi
0 commit comments