Commits

Zhang Huangbin  committed 79cd49d

Get major release number as DISTRO_VERSION for FreeBSD.

  • Participants
  • Parent commits ccebb2d

Comments (0)

Files changed (1)

File iRedMail/conf/global

     fi
 elif [ X"${KERNEL_NAME}" == X"FREEBSD" ]; then
     export DISTRO='FREEBSD'
-    export DISTRO_VERSION="$(uname -r |awk -F'-' '{print $1}')"
+    export DISTRO_VERSION="$(uname -r |awk -F'-' '{print $1}' |awk -F'.' '{print $1}')"
 
     # Directory of RC scripts.
     export DIR_RC_SCRIPTS='/usr/local/etc/rc.d'