File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # Listen for "docker stop": https://superuser.com/a/1299463/57662
4
- # shellcheck disable=SC3048
5
- trap " echo Shutdown requested; exit 0" SIGTERM
3
+ # Validate required environment variables
4
+ for var in CLOUDFLARE_API_TOKEN CERTBOT_DOMAINS CERTBOT_EMAIL CERTBOT_KEY_TYPE; do
5
+ if [ -z " $( eval echo \$ $var ) " ]; then
6
+ echo " Error: $var environment variable is not set"
7
+ exit 1
8
+ fi
9
+ done
6
10
7
11
# Permissions must be created after volumes have been mounted; otherwise, windows file system permissions will override
8
12
# the permissions set within the container.
@@ -33,14 +37,6 @@ echo "⏰ Renewal Interval: $RENEWAL_INTERVAL seconds"
33
37
echo " Let's Encrypt, shall we?"
34
38
echo " -----------------------------------------------------------"
35
39
36
- # Validate required environment variables
37
- for var in CLOUDFLARE_API_TOKEN CERTBOT_DOMAINS CERTBOT_EMAIL CERTBOT_KEY_TYPE; do
38
- if [ -z " $( eval echo \$ $var ) " ]; then
39
- echo " Error: $var environment variable is not set"
40
- exit 1
41
- fi
42
- done
43
-
44
40
# Create Cloudflare configuration file
45
41
echo " dns_cloudflare_api_token = $CLOUDFLARE_API_TOKEN " > /cloudflare.ini
46
42
You can’t perform that action at this time.
0 commit comments