mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-10-25 21:26:47 +09:00
initial release
This commit is contained in:
1 parent
f3754ece52
commit
9352a59250
53 files changed
+3525
-1
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Check if the cert is expired or expires within a day, if so, renew
|
||||
if openssl x509 -in /config/keys/letsencrypt/fullchain.pem -noout -checkend 86400 >/dev/null; then
|
||||
echo "The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am)."
|
||||
else
|
||||
echo "The cert is either expired or it expires within the next day. Attempting to renew. This could take up to 10 minutes."
|
||||
/app/le-renew.sh
|
||||
sleep 1
|
||||
fi
|
||||
Reference in new issue
Block a user