From 4a3204b0751f9026df4f4073905df19102e58187 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Jul 2024 13:36:36 +0000 Subject: [PATCH] Added test for email function existing in installapp --- bin/installapp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/installapp b/bin/installapp index 96ae15c..99f5cd6 100755 --- a/bin/installapp +++ b/bin/installapp @@ -24,4 +24,5 @@ APP=$1 . /federated/lib/$APP.sh config_$APP start_$APP -email_$APP +# Only send email if email function exists +[[ $(type -t email_$APP) == function ]] && email_$APP