Browse Source

Fix missing indentation

Add Missing indetation after addition of for-loop
Jonathan Golder 2 years ago
parent
commit
f989e9f9a2
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      letsencrypt-renew.sh

+ 10
- 10
letsencrypt-renew.sh View File

@@ -7,17 +7,17 @@ for inifile in cli-*.ini; do
7 7
 	# Strip domain out of filename
8 8
 	domain=${inifile:4:-4}
9 9
 
10
-# sleep for a random time so not all certificates get renewed at the same time
11
-sleep 473
10
+	# sleep for a random time so not all certificates get renewed at the same time
11
+	sleep 473
12 12
 
13
-# Check validity of cert for domain
14
-openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
13
+	# Check validity of cert for domain
14
+	openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain}/cert.pem > /dev/null
15 15
 
16
-if [ \$? != 0 ]; then
17
-	# run let's encrypt
18
-	letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
19
-	# import certificate
20
-	uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
21
-fi
16
+	if [ \$? != 0 ]; then
17
+		# run let's encrypt
18
+		letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini
19
+		# import certificate
20
+		uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem
21
+	fi
22 22
 
23 23
 done