Browse Source

Merge pull request #706 from dgibbs64/ultimatebyte-fixes

Accept two main other mail servers
pull/718/head
Daniel Gibbs 9 years ago
parent
commit
c4976b4a49
  1. 14
      functions/check_deps.sh

14
functions/check_deps.sh

@ -2,7 +2,7 @@
# LGSM check_deps.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="060216"
lgsm_version="190216"
# Description: Checks that the requires dependencies are installed for LGSM.
@ -40,12 +40,24 @@ fi
fn_deps_email(){
# Adds postfix to required dependencies if email notification is enabled
if [ "${emailnotification}" == "on" ]; then
if [ -f /usr/bin/mailx ]; then
if [ -d /etc/exim4 ]; then
array_deps_required+=( exim4 )
elif [ -d /etc/sendmail ]; then
array_deps_required+=( sendmail )
elif [ -n "$(command -v dpkg-query)" ]; then
array_deps_required+=( mailutils 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
}
fn_found_missing_deps(){

Loading…
Cancel
Save