Created
April 6, 2014 13:15
-
-
Save daimor/10005852 to your computer and use it in GitHub Desktop.
Patch for GlobalsDB cplatname for enable installing to CentOS, and Ubuntu any versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cplatname 2013-05-02 17:50:01.000000000 -0700 | |
+++ cplatname.new 2014-04-05 11:43:21.676624274 -0700 | |
@@ -114,13 +114,13 @@ | |
distName=`cat /etc/issue | cut -f1 -d" "` | |
version=`cat /etc/issue | cut -f2 -d" " | cut -f1-2 -d"."` | |
proc=`uname -m` | |
- if [ "$distName" = "Ubuntu" -a "$version" = "11.04" -a "$proc" = "x86_64" ] ; then | |
+ if [ "$distName" = "Ubuntu" -a "$proc" = "x86_64" ] ; then | |
plat="lnxsusex64" | |
fi | |
fi | |
if [ -f /etc/redhat-release ] | |
then | |
- grep -P 'Red Hat Enterprise Linux .* release 6' /etc/redhat-release > /dev/null 2>&1 | |
+ grep -P '.* release 6' /etc/redhat-release > /dev/null 2>&1 | |
if [ $? = 0 ] | |
then | |
proc=`uname -m` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment