Lines 8-17
Link Here
|
8 |
# |
8 |
# |
9 |
# weekly_certbot_enable (bool): Set to "NO" by default |
9 |
# weekly_certbot_enable (bool): Set to "NO" by default |
10 |
# weekly_certbot_service (str): If defined, certbot will try to |
10 |
# weekly_certbot_service (str): If defined, certbot will try to |
11 |
# shutdown this this service before |
11 |
# shutdown this service before |
12 |
# renewing the certificate, and restart |
12 |
# renewing the certificate, and restart |
13 |
# it afterwards. For example, set to |
13 |
# it afterwards. For example, set to |
14 |
# "nginx" or "apache24" |
14 |
# "nginx" or "apache24" |
|
|
15 |
# weekly_certbot_restart_service (str): If defined, certbot will try to |
16 |
# restart this service after renewing the |
17 |
# certificate. For example, set to "nginx" |
18 |
# weekly_certbot_reload_service (str): If defined, certbot will try to |
19 |
# reload this service after renewing the |
20 |
# certificate. For example, set to "nginx" |
15 |
|
21 |
|
16 |
# If there is a global system configuration file, suck it in. |
22 |
# If there is a global system configuration file, suck it in. |
17 |
# |
23 |
# |
Lines 28-40
Link Here
|
28 |
|
34 |
|
29 |
PRE_HOOK="" |
35 |
PRE_HOOK="" |
30 |
POST_HOOK="" |
36 |
POST_HOOK="" |
31 |
if [ -n "$weekly_certbot_service" ] |
37 |
if [ -n "$weekly_certbot_service" ]; then |
32 |
then |
|
|
33 |
if service "$weekly_certbot_service" onestatus |
38 |
if service "$weekly_certbot_service" onestatus |
34 |
then |
39 |
then |
35 |
PRE_HOOK="service $weekly_certbot_service onestop" |
40 |
PRE_HOOK="service $weekly_certbot_service onestop" |
36 |
POST_HOOK="service $weekly_certbot_service onestart" |
41 |
POST_HOOK="service $weekly_certbot_service onestart" |
37 |
fi |
42 |
fi |
|
|
43 |
elif [ -n "$weekly_certbot_restart_service" ]; then |
44 |
if service "$weekly_certbot_restart_service" onestatus |
45 |
then |
46 |
POST_HOOK="service $weekly_certbot_restart_service onerestart" |
47 |
fi |
48 |
elif [ -n "$weekly_certbot_reload_service" ]; then |
49 |
if service "$weekly_certbot_reload_service" onestatus |
50 |
then |
51 |
POST_HOOK="service $weekly_certbot_reload_service onereload" |
52 |
fi |
38 |
fi |
53 |
fi |
39 |
|
54 |
|
40 |
anticongestion |
55 |
anticongestion |