Commits

Denis Darii committed 148f6cf Draft

added a check for 12.04 ubuntu which has postgres 9.x already

  • Participants
  • Parent commits 5a9d90e

Comments (0)

Files changed (1)

File pg_fabrep/tasks.py

 
 def _add_postgres9_ppa():
     ''' add postgresql 9.x ppa '''
-    sudo('add-apt-repository ppa:pitti/postgresql')
+    if 'Ubuntu 12.04' not in sudo('cat /etc/issue.net'):
+        sudo('add-apt-repository ppa:pitti/postgresql')
 
 
 def _install_dependencies():