Make sure PATH contains /usr/sbin where "service" is located

This commit is contained in:
Raphaël Hertzog 2017-01-02 18:29:50 +01:00
parent eed07c296c
commit e5b1bbbb3f
1 changed files with 1 additions and 0 deletions

View File

@ -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 %}