Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 01a7063

Browse files
authored
Merge pull request #244 from linuxserver/renew
remove renewal during container start
2 parents ca48ac1 + 69f5181 commit 01a7063

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ This will *ask* Google et al not to index and list your site. Be careful with th
141141

142142
## Versions
143143

144+
+ **08.12.18:** Had to remove cert renewal during container start due to certbot's new undocumented "feature" of up to 8 minute random delay.
144145
+ **03.12.18:** Fix silly bug resetting the duckdns token.
145146
+ **02.12.18:** Add dns validation support for ovh.
146147
+ **20.11.18:** Externalize reverse proxy confs to separate github repo `linuxserver/reverse-proxy-confs`, update baseimage packages during build

root/etc/cont-init.d/50-config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,11 @@ if [ ! -f "/config/keys/letsencrypt/fullchain.pem" ]; then
228228
sleep infinity
229229
fi
230230
openssl pkcs12 -export -out privkey.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:
231+
sleep 1
231232
cat {privkey,fullchain}.pem > priv-fullchain-bundle.pem
233+
echo "New certificate generated; starting nginx"
232234
else
233-
echo "Certificate exists; parameters unchanged; attempting renewal"
234-
chmod +x /app/le-renew.sh
235-
sleep 1
236-
/app/le-renew.sh
235+
echo "Certificate exists; parameters unchanged; starting nginx"
237236
fi
238237

239238
# logfiles needed by fail2ban
@@ -247,3 +246,4 @@ chown -R abc:abc \
247246
/config
248247
chmod -R 0644 /etc/logrotate.d
249248
chmod -R +r /config/log
249+
chmod +x /app/le-renew.sh

0 commit comments

Comments
 (0)