Skip to content

Commit 968241e

Browse files
author
Aingeru
committed
alpine sh review
1 parent 3bf890a commit 968241e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM alpine:3.16
22

33
# Actualizar el sistema e instalar dependencias
44
RUN apk update && apk upgrade && \
5-
apk add --no-cache sudo nginx certbot
5+
apk add --no-cache sudo nginx certbot sed openssl
66

77
# Configuración del directorio raíz para webs
88
ENV WEB_ROOT_PATH=/var/www/certbot

start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# Check env vars with value
44
for VAR in DOMAIN WEB_ROOT_PATH EMAIL CERT_PATH CERT_PASSWORD; do
5-
if [ -z "${!VAR}" ]; then
5+
eval "value=\$$VAR"
6+
if [ -z "$value" ]; then
67
echo "Error: La variable de entorno ${VAR} no está definida."
78
exit 1
89
fi

0 commit comments

Comments
 (0)