You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: renewAndSendToProxy.sh
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,44 @@ TIMEOUT=5
16
16
17
17
printf"${GREEN}Hello! renewAndSendToProxy runs. Today is $(date)${NC}\n"
18
18
19
+
# send current certificates to proxy - after that do a certbot renew round (which could take some seconds) and send updated certificates to proxy (faster startup with https when old certificates are still valid)
20
+
fordin /etc/letsencrypt/live/*/ ;do
21
+
#move to directory
22
+
cd$d
23
+
24
+
#get directory name (which is the name of the regular domain)
25
+
folder=${PWD##*/}
26
+
27
+
#concat certificates
28
+
printf"old certificates for $folder will be send to proxy\n"
0 commit comments