* Select proper PHP version on RPM based OS after INSTALLER_DEPS have been installed
* Remove check for unsupported RPM distros as it is checked in os_check already
* Add select_rpm_php function to tox tests
Signed-off-by: Christian König <ckoenig@posteo.de>
# If neither apt-get or yum/dnf package managers were found
else
# it's not an OS we can support,
printf" %b OS distribution not supported\\n""${CROSS}"
# so exit the installer
exit
fi
}
select_rpm_php(){
# If the host OS is Fedora,
if grep -qiE 'fedora|fedberry' /etc/redhat-release;then
# all required packages should be available by default with the latest fedora release
@ -451,10 +462,7 @@ elif is_command rpm ; then
exit1
fi
fi
fi
fi
else
# Warn user of unsupported version of Fedora or CentOS
fi# Warn user of unsupported version of Fedora or CentOS
if ! whiptail --defaultno --title "Unsupported RPM based distribution" --yesno "Would you like to continue installation on an unsupported RPM based distribution?\\n\\nPlease ensure the following packages have been installed manually:\\n\\n- lighttpd\\n- lighttpd-fastcgi\\n- PHP version 7+""${r}""${c}";then
printf" %b Aborting installation due to unsupported RPM based distribution\\n""${CROSS}"
exit
@ -462,13 +470,6 @@ elif is_command rpm ; then
printf" %b Continuing installation with unsupported RPM based distribution\\n""${INFO}"
fi
fi
# If neither apt-get or yum/dnf package managers were found
else
# it's not an OS we can support,
printf" %b OS distribution not supported\\n""${CROSS}"
# so exit the installer
exit
fi
}
@ -2547,6 +2548,11 @@ main() {
printf" %b Checking for / installing Required dependencies for this install script...\\n""${INFO}"
install_dependent_packages "${INSTALLER_DEPS[@]}"
#In case of RPM based distro, select the proper PHP version