Browse Source

warning will run every time check_deps is run

space


word


comment
pull/3723/head
Daniel Gibbs 4 years ago
parent
commit
3c7f2688d1
  1. 13
      lgsm/functions/check_deps.sh
  2. 2
      lgsm/functions/info_distro.sh

13
lgsm/functions/check_deps.sh

@ -592,13 +592,11 @@ fn_deps_build_redhat(){
array_deps_required+=( hostname )
fi
fi
fn_deps_email
fn_check_loop
}
if [ "${commandname}" == "INSTALL" ]; then
if [ "$(whoami)" == "root" ]; then
echo -e ""
echo -e "${lightyellow}Checking Dependencies as root${default}"
@ -611,12 +609,13 @@ if [ "${commandname}" == "INSTALL" ]; then
echo -e "${lightyellow}Checking Dependencies${default}"
echo -e "================================="
fi
if [ "${distrosupport}" == "supported" ]||[ "${distrosupport}" == "unsupported" ]; then
if [ "${distrosupport}" == "unsupported" ]; then
fn_print_warning_nl "${distroname} is no longer supported. Upgrading is reccomended."
else
fi
fi
# Will warn user if their distro is no longer supported by the vendor.
if [ -n "${distrosupport}" ]; then
if [ "${distrosupport}" == "unsupported" ]; then
fn_print_warning_nl "${distroname} is no longer supported by the vendor. Upgrading is recommended."
fn_script_log_warn "${distroname} is no longer supported by the vendor. Upgrading is recommended."
fi
fi

2
lgsm/functions/info_distro.sh

@ -70,7 +70,7 @@ for distro_info in "${distro_info_array[@]}"; do
fi
done
# Check if distro supported by distro developer.
# Check if distro supported by distro vendor.
if [ "$(command -v distro-info 2>/dev/null)" ]; then
distrosunsupported="$(distro-info --unsupported)"
distrosunsupported_array=( "${distrosunsupported}" )

Loading…
Cancel
Save