Make sure PATH contains /usr/sbin where "service" is located
This commit is contained in:
parent
eed07c296c
commit
e5b1bbbb3f
|
@ -5,6 +5,7 @@
|
||||||
{% from "letsencrypt-sh/map.jinja" import letsencrypt_sh with context %}
|
{% from "letsencrypt-sh/map.jinja" import letsencrypt_sh with context %}
|
||||||
{% if letsencrypt_sh.hook_service_to_reload %}
|
{% if letsencrypt_sh.hook_service_to_reload %}
|
||||||
if [ "$1" = "deploy_cert" ]; then
|
if [ "$1" = "deploy_cert" ]; then
|
||||||
|
export PATH="/sbin:/bin:/usr/sbin:/sbin"
|
||||||
service {{ letsencrypt_sh.hook_service_to_reload }} reload
|
service {{ letsencrypt_sh.hook_service_to_reload }} reload
|
||||||
fi
|
fi
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue