FreeBSD Bugzilla – Attachment 213468 Details for
Bug 245674
security/py-certbot: allow more options for restarting services after certificate renewals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
certbot.patch (text/plain), 1.95 KB, created by
Dmitry Marakasov
on 2020-04-16 20:01:24 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2020-04-16 20:01:24 UTC
Size:
1.95 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 531878) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= certbot > PORTVERSION= ${ACME_VERSION} >-PORTEPOCH= 1 >+PORTEPOCH= 2 > CATEGORIES= security python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >Index: files/500.certbot.in >=================================================================== >--- files/500.certbot.in (revision 531878) >+++ files/500.certbot.in (working copy) >@@ -8,10 +8,16 @@ > # > # weekly_certbot_enable (bool): Set to "NO" by default > # weekly_certbot_service (str): If defined, certbot will try to >-# shutdown this this service before >+# shutdown this service before > # renewing the certificate, and restart > # it afterwards. For example, set to > # "nginx" or "apache24" >+# weekly_certbot_restart_service (str): If defined, certbot will try to >+# restart this service after renewing the >+# certificate. For example, set to "nginx" >+# weekly_certbot_reload_service (str): If defined, certbot will try to >+# reload this service after renewing the >+# certificate. For example, set to "nginx" > > # If there is a global system configuration file, suck it in. > # >@@ -28,13 +34,22 @@ > > PRE_HOOK="" > POST_HOOK="" >- if [ -n "$weekly_certbot_service" ] >- then >+ if [ -n "$weekly_certbot_service" ]; then > if service "$weekly_certbot_service" onestatus > then > PRE_HOOK="service $weekly_certbot_service onestop" > POST_HOOK="service $weekly_certbot_service onestart" > fi >+ elif [ -n "$weekly_certbot_restart_service" ]; then >+ if service "$weekly_certbot_restart_service" onestatus >+ then >+ POST_HOOK="service $weekly_certbot_restart_service onerestart" >+ fi >+ elif [ -n "$weekly_certbot_reload_service" ]; then >+ if service "$weekly_certbot_reload_service" onestatus >+ then >+ POST_HOOK="service $weekly_certbot_reload_service onereload" >+ fi > fi > > anticongestion
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245674
: 213468