From 7142d56d20fe5385389744476c0519aa2f96374d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2025 20:08:33 +0000 Subject: [PATCH] Added check for mail existing before sending mail in installapp --- bin/installapp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/installapp b/bin/installapp index 58bc325..020ab1e 100755 --- a/bin/installapp +++ b/bin/installapp @@ -40,4 +40,4 @@ done config_$APP start_$APP # Only send email if email function exists and NO_EMAIL isn't set -[[ ! "$NO_EMAIL" ]] && [[ $(type -t email_$APP) == function ]] && email_$APP +[[ ! "$NO_EMAIL" ]] && [[ -d "/federated/apps/mail" ]] && [[ $(type -t email_$APP) == function ]] && email_$APP