Skip to content

Commit d841e04

Browse files
committed
Set backwards compatible variable before environment check. Fixes #14
1 parent 93b66d8 commit d841e04

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/entrypoint.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ validate_environment_variables() {
141141

142142
trap cleanup TERM INT
143143

144+
# Ensure backwards compatibility with the old CERTBOT_DOMAIN environment variable
145+
if [ -n "$CERTBOT_DOMAIN" ] && [ -z "$CERTBOT_DOMAINS" ]; then
146+
CERTBOT_DOMAINS=$CERTBOT_DOMAIN
147+
fi
148+
144149
validate_environment_variables
145150

146151
if ! is_default_privileges; then
@@ -151,11 +156,6 @@ if [ "$REPLACE_SYMLINKS" = "true" ]; then
151156
configure_windows_file_permissions
152157
fi
153158

154-
# Ensure backwards compatibility with the old CERTBOT_DOMAIN environment variable
155-
if [ -n "$CERTBOT_DOMAIN" ] && [ -z "$CERTBOT_DOMAINS" ]; then
156-
CERTBOT_DOMAINS=$CERTBOT_DOMAIN
157-
fi
158-
159159
cat << "EOF"
160160
____________________
161161
< Certbot, activate! >

0 commit comments

Comments
 (0)