Added check for mail existing before sending mail in installapp

This commit is contained in:
root 2025-01-31 20:08:33 +00:00
parent e1bd7eec51
commit 7142d56d20

View File

@ -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