Skip to content

Instantly share code, notes, and snippets.

@prasanthj
Created October 10, 2012 00:47
Show Gist options
  • Select an option

  • Save prasanthj/3862471 to your computer and use it in GitHub Desktop.

Select an option

Save prasanthj/3862471 to your computer and use it in GitHub Desktop.
Patch for making vertica getting installed on Ubuntu 12.04 (Precise)
--- /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py.orig 2012-10-09 20:43:30.154357382 -0400
+++ /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py 2012-10-09 20:39:10.490355807 -0400
@@ -149,7 +149,12 @@ class SystemProfileFactory:
opsys = DBinclude.OS_DEBIAN
return opsys, host
- raise UnsupportedOSException("(%s) This version of Debian is unsupported." % host)
+ (status, res) = ssh.execute("grep \"wheezy\" /etc/debian_version", hide=True)
+ if (res[0] == '0'):
+ opsys = DBinclude.OS_DEBIAN
+ return opsys, host
+
+ raise UnsupportedOSException("(%s) This version of Debian/Ubuntu is unsupported." % host)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment