From e5b1bbbb3f774a53866401fff6d489f8234e3568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 2 Jan 2017 18:29:50 +0100 Subject: [PATCH] Make sure PATH contains /usr/sbin where "service" is located --- letsencrypt-sh/files/hook | 1 + 1 file changed, 1 insertion(+) diff --git a/letsencrypt-sh/files/hook b/letsencrypt-sh/files/hook index 2094e2b..50cf2a4 100644 --- a/letsencrypt-sh/files/hook +++ b/letsencrypt-sh/files/hook @@ -5,6 +5,7 @@ {% from "letsencrypt-sh/map.jinja" import letsencrypt_sh with context %} {% if letsencrypt_sh.hook_service_to_reload %} if [ "$1" = "deploy_cert" ]; then + export PATH="/sbin:/bin:/usr/sbin:/sbin" service {{ letsencrypt_sh.hook_service_to_reload }} reload fi {% else %}