Commits

Zhang Huangbin  committed 77892c6

Get DISTRO_VERSION on Ubuntu.

  • Participants
  • Parent commits c28b413

Comments (0)

Files changed (1)

File iRedMail/conf/global

         # Ubuntu
         export DISTRO='UBUNTU'
 
-        # Code name:
+        # Ubuntu version number. e.g. 11.10.
+
+        # Ubuntu version number and code name:
         #   - 8.04: hardy
         #   - 8.10: intrepid
         #   - 9.04: jaunty
         #   - 10.10: maverick
         #   - 11.04: natty
         #   - 11.10: oneiric
-        export DISTRO_CODENAME="$( grep 'DISTRIB_CODENAME' /etc/lsb-release | awk -F'=' '{print $2}' )"
+        export DISTRO_VERSION="$(grep 'DISTRIB_RELEASE' /etc/lsb-release | awk -F'=' '{print $2}')"
+        export DISTRO_CODENAME="$(grep 'DISTRIB_CODENAME' /etc/lsb-release | awk -F'=' '{print $2}')"
+
         # Mark 10.10 (maverick) as 10.04 (lucid).
         if [ X"${DISTRO_CODENAME}" == X"maverick" ]; then
             export DISTRO_CODENAME='lucid'