Commits

Zhang Huangbin  committed 7d381ed

FreeBSD: Drop string '-RELEASE', '-STABLE' in release number.

  • Participants
  • Parent commits 2f47fb4

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)"
+    export DISTRO_VERSION="$(uname -r |awk -F'-' '{print $1}')"
 
     # Directory of RC scripts.
     export DIR_RC_SCRIPTS='/usr/local/etc/rc.d'