0
0
mirror of https://github.com/saltstack-formulas/letsencrypt-sh-formula.git synced 2024-11-27 23:07:49 +01:00

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

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