File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- * Aut 05 2016 CloudFlare Inc <help@cloudflare.com> - 2016.8.0
1
+ * Oct 24 2016 CloudFlare Inc <help@cloudflare.com> - 2016.10.0
2
+ - Change OS detection for EasyApache 4 installer to work with CentOS < 7
3
+
4
+ * Aug 05 2016 CloudFlare Inc <help@cloudflare.com> - 2016.8.0
2
5
- Updated CloudFlare IPv6 ranges
3
6
- Support for installing on EasyApache4
4
7
Original file line number Diff line number Diff line change @@ -38,13 +38,11 @@ function install_ea3 {
38
38
function install_ea4 {
39
39
40
40
#
41
- # Reasonably reliable way to get OS distribution name and version
41
+ # Get OS version from redhat-release
42
42
#
43
- DISTRO_NAME=` cat /etc/os -release | grep " ^NAME " | sed ' s/NAME="// ' | sed ' s/"// ' `
44
- DISTRO_VERSION=` cat /etc/os -release | grep " ^VERSION_ID " | sed ' s/VERSION_ID="/ /' | sed ' s/" //' `
43
+ DISTRO_NAME=` cat /etc/redhat -release | awk { ' print$1 ' } `
44
+ DISTRO_VERSION=` cat /etc/redhat -release | sed -e ' s/.*release \(.*\) (.*)/\1 /' -e ' s/\..* //' `
45
45
46
- # Remove trailing minor version
47
- DISTRO_VERSION=` sed " s/\..*//" <<< " $DISTRO_VERSION" `
48
46
49
47
if [[ $DISTRO_VERSION == " 6" || $DISTRO_VERSION == " 7" ]]; then
50
48
echo
Original file line number Diff line number Diff line change 1
1
MAJOR=2016
2
- MINOR=8
2
+ MINOR=10
3
3
BUILD=0
You can’t perform that action at this time.
0 commit comments