Determine Red Hat or Fedora version

Note only for Red Hat or Fedora

Ditribution

DIST=$(sed s/\ release.*// /etc/redhat-release)

Version including minor version

VER=$(sed s/.*release\ // /etc/redhat-release | sed s/\ .*//)

Major version only

MAJOR=$(sed s/.*release\ // /etc/redhat-release | awk -F. '{print $1}')