Browse Source

check using mailx

Keeping displaying the presence of exim4, sendmail, postfix, mailutils, and mailx in the right case.
pull/706/head
lrob 9 years ago
parent
commit
7a58d80d9e
  1. 24
      functions/check_deps.sh

24
functions/check_deps.sh

@ -40,14 +40,22 @@ fi
fn_deps_email(){ fn_deps_email(){
# Adds postfix to required dependencies if email notification is enabled # Adds postfix to required dependencies if email notification is enabled
if [ "${emailnotification}" == "on" ]; then if [ "${emailnotification}" == "on" ]; then
if [ -d /etc/exim4 ]; then if [ -f /usr/bin/mailx ]; then
array_deps_required+=( exim4 ) if [ -d /etc/exim4 ]; then
elif [ -d /etc/sendmail ]; then array_deps_required+=( exim4 )
array_deps_required+=( sendmail ) elif [ -d /etc/sendmail ]; then
elif [ -n "$(command -v dpkg-query)" ]; then array_deps_required+=( sendmail )
array_deps_required+=( mailutils postfix ) elif [ -n "$(command -v dpkg-query)" ]; then
elif [ -n "$(command -v yum)" ]; then array_deps_required+=( mailutils postfix )
array_deps_required+=( mailx postfix ) elif [ -n "$(command -v yum)" ]; then
array_deps_required+=( mailx postfix )
fi
else
if [ -n "$(command -v dpkg-query)" ]; then
array_deps_required+=( mailutils postfix )
elif [ -n "$(command -v yum)" ]; then
array_deps_required+=( mailx postfix )
fi
fi fi
fi fi
} }

Loading…
Cancel
Save