modifica al funzionamento del certbot
This commit is contained in:
3 files changed
+34
-6
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Certbot entrypoint script
|
||||
# Se vengono passati argomenti, esegui il comando direttamente
|
||||
# Altrimenti, esegui il loop di auto-renewal
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
# Nessun argomento: modalità auto-renewal
|
||||
echo "Starting certbot auto-renewal service..."
|
||||
trap exit TERM
|
||||
while :; do
|
||||
certbot renew --webroot --webroot-path=/var/www/certbot --quiet
|
||||
sleep 12h & wait ${!}
|
||||
done
|
||||
else
|
||||
# Argomenti passati: esegui il comando certbot
|
||||
exec certbot "$@"
|
||||
fi
|
||||
Reference in new issue
Block a user