modifica al funzionamento del certbot

This commit is contained in:
sbierti committed 2025-11-30 11:57:01 +01:00
1 parent 5206e2ecd1
commit 7cb11b710a
3 files changed
+34 -6

No files matched your search

+18
View File
@@ -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