Browse Source

Merge branch 'hotfix/180908.3'

pull/2045/head 180908.3
Daniel Gibbs 7 years ago
parent
commit
851da90539
  1. 33
      lgsm/functions/check_deps.sh

33
lgsm/functions/check_deps.sh

@ -179,10 +179,9 @@ fn_deps_email(){
fn_found_missing_deps(){
if [ "${#array_deps_missing[@]}" != "0" ]; then
fn_print_dots "Checking dependencies"
sleep 0.5
fn_print_error_nl "Checking dependencies: missing: ${red}${array_deps_missing[@]}${default}"
fn_script_log_error "Checking dependencies: missing: ${array_deps_missing[@]}"
fn_print_warning_nl "Missing dependencies: ${red}${array_deps_missing[@]}${default}"
fn_script_log_warn "Missing dependencies: ${array_deps_missing[@]}"
sleep 0.5
if [ -n "${monostatus}" ]; then
fn_install_mono_repo
@ -257,6 +256,11 @@ fn_found_missing_deps(){
if [ "${function_selfname}" == "command_install.sh" ]; then
sleep 5
fi
else
if [ "${function_selfname}" == "command_install.sh" ]; then
fn_print_information_nl "Required dependencies already installed"
fn_script_log_info "Required dependencies already installed"
fi
fi
}
@ -355,6 +359,9 @@ fn_deps_build_debian(){
# Serious Sam 3: BFE
elif [ "${shortname}" == "ss3" ]; then
array_deps_required+=( libxrandr2:i386 libglu1-mesa:i386 libxtst6:i386 libusb-1.0-0-dev:i386 libxxf86vm1:i386 libopenal1:i386 libssl1.0.0:i386 libgtk2.0-0:i386 libdbus-glib-1-2:i386 libnm-glib-dev:i386 )
# Sven Co-op
elif [ "${shortname}" == "sven" ]; then
array_deps_required+=( libssl1.0.0:i386 )
# Unreal Engine
elif [ "${executable}" == "./ucc-bin" ]; then
#UT2K4
@ -370,6 +377,9 @@ fn_deps_build_debian(){
# Eco
elif [ "${shortname}" == "eco" ]; then
array_deps_required+=( mono-complete )
# Wurm: Unlimited
elif [ "${shortname}" == "wurm" ]; then
array_deps_required+=( xvfb )
fi
fn_deps_email
fn_check_loop
@ -482,9 +492,18 @@ fn_deps_build_redhat(){
}
if [ "${function_selfname}" == "command_install.sh" ]; then
echo ""
echo "Checking Dependencies"
echo "================================="
if [ "$(whoami)" == "root" ]; then
echo ""
echo "Checking Dependencies as root"
echo "================================="
fn_print_information_nl "Checking any missing dependencies for ${gamename} server only."
fn_print_information_nl "This will NOT install a ${gamename} server."
sleep 2
else
echo ""
echo "Checking Dependencies"
echo "================================="
fi
fi
# Filter checking in to Debian or Red Hat Based

Loading…
Cancel
Save