From 60ef2515b18c053f6b02af8bd5545e0c2700d8ae Mon Sep 17 00:00:00 2001 From: Jibec Date: Wed, 2 Jan 2019 13:12:15 +0200 Subject: [PATCH] restart service on cert update --- hooks/post_cert_update | 7 +++++++ manifest.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 hooks/post_cert_update diff --git a/hooks/post_cert_update b/hooks/post_cert_update new file mode 100755 index 0000000..a92da95 --- /dev/null +++ b/hooks/post_cert_update @@ -0,0 +1,7 @@ +#!/bin/bash + +domain=$1 +app=$(basename "$0") +app=${app#50-} # all hooks are nammed "50-$app". + +systemctl restart "$app" \ No newline at end of file diff --git a/manifest.json b/manifest.json index e0147ed..4b587f6 100644 --- a/manifest.json +++ b/manifest.json @@ -13,9 +13,9 @@ "email": "jean-baptiste@holcroft.fr" }, "requirements": { - "yunohost": ">= 3.1.0" + "yunohost": ">= 3.4.0" }, - "version": "1.2.8~ynh6", + "version": "1.2.8~ynh7", "multi_instance": true, "services": [ ],