From 1e2d5f1cd80ef258552d3d760fefaf41aa42b3a9 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 12 Jun 2019 12:32:03 +0200 Subject: [PATCH] add dep check --- hooks/on-start | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hooks/on-start b/hooks/on-start index 01b289f..07a15c7 100755 --- a/hooks/on-start +++ b/hooks/on-start @@ -9,3 +9,15 @@ if ! which envsubst 2>/dev/null >/dev/null; then exit 1 fi + +if ! which base64 2>/dev/null >/dev/null; then + printf "Le programme \`envsubst\` est nécessaire. Installer \`coreutils\`.\n" + + exit 1 +fi + +if ! which smartcl 2>/dev/null >/dev/null; then + printf "Le programme \`envsubst\` est nécessaire. Installer \`smartmontools\`.\n" + + exit 1 +fi