Commits

Zhang Huangbin committed 474a19b

Lower case DISTRO_CODENAME for RHEl/CentOS/Scientific.

  • Participants
  • Parent commits 63c7d91

Comments (0)

Files changed (1)

iRedMail/conf/global

         # Get distribution name as DISTRO_CODENAME
         if grep '^Red' /etc/redhat-release &>/dev/null; then
             # RHEL
-            export DISTRO_CODENAME='RHEL'
+            export DISTRO_CODENAME='rhel'
         elif grep '^CentOS' /etc/redhat-release &>/dev/null; then
             # CentOS
-            export DISTRO_CODENAME='CentOS'
+            export DISTRO_CODENAME='centos'
         elif grep '^Scientific' /etc/redhat-release &>/dev/null; then
             # Scientific Linux
-            export DISTRO_CODENAME='Scientific'
+            export DISTRO_CODENAME='scientific'
         else
             export UNSUPPORTED_RELEASE='YES'
         fi