Skip to content

Instantly share code, notes, and snippets.

@daimor
Created April 6, 2014 13:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daimor/10005852 to your computer and use it in GitHub Desktop.
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
--- 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