View | Details | Raw Unified | Return to bug 245954
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	certbot
4
PORTNAME=	certbot
5
PORTVERSION=	${ACME_VERSION}
5
PORTVERSION=	${ACME_VERSION}
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	security python
8
CATEGORIES=	security python
8
MASTER_SITES=	CHEESESHOP
9
MASTER_SITES=	CHEESESHOP
(-)files/500.certbot.in (-6 / +3 lines)
Lines 26-45 Link Here
26
	echo
26
	echo
27
	echo "Renewing Let's Encrypt certificates:"
27
	echo "Renewing Let's Encrypt certificates:"
28
28
29
	PRE_HOOK=""
29
	DEPLOY_HOOK=""
30
	POST_HOOK=""
31
	if [ -n "$weekly_certbot_service" ]
30
	if [ -n "$weekly_certbot_service" ]
32
	then
31
	then
33
	    if service "$weekly_certbot_service" onestatus
32
	    if service "$weekly_certbot_service" onestatus
34
	    then
33
	    then
35
		PRE_HOOK="service $weekly_certbot_service onestop"
34
		DEPLOY_HOOK="service $weekly_certbot_service onereload"
36
		POST_HOOK="service $weekly_certbot_service onestart"
37
	    fi
35
	    fi
38
	fi
36
	fi
39
37
40
	anticongestion
38
	anticongestion
41
	if %%LOCALBASE%%/bin/certbot renew --pre-hook "$PRE_HOOK" \
39
	if %%LOCALBASE%%/bin/certbot renew --deploy-hook "$DEPLOY_HOOK" \
42
	                             --post-hook "$POST_HOOK" \
43
	   			     --no-random-sleep-on-renew
40
	   			     --no-random-sleep-on-renew
44
	then
41
	then
45
	    rc=0
42
	    rc=0

Return to bug 245954