[Git][noosfero/noosfero][master] 2 commits: pg-search: use debian-dependencies instead of force install

Rodrigo Souto gitlab at mg.gitlab.com
Fri Sep 15 10:35:03 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
c5b28433 by Rodrigo Souto at 2017-07-27T13:07:43Z
pg-search: use debian-dependencies instead of force install

- - - - -
56f75068 by Rodrigo Souto at 2017-09-15T13:34:55Z
Merge branch 'pg-search-debian-dependencies' into 'master'

pg-search: use debian-dependencies instead of force install

See merge request noosfero/noosfero!1288
- - - - -


2 changed files:

- + plugins/pg_search/debian-dependencies
- − plugins/pg_search/install.rb


Changes:

=====================================
plugins/pg_search/debian-dependencies
=====================================
--- /dev/null
+++ b/plugins/pg_search/debian-dependencies
@@ -0,0 +1 @@
+ruby-pg-search


=====================================
plugins/pg_search/install.rb deleted
=====================================
--- a/plugins/pg_search/install.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-update = false
-
-unless system 'dpkg -s ruby-pg-search', :out => File::NULL
-  system 'sudo apt-get update', :out => File::NULL
-  update = true
-  unless system 'sudo apt-get install -y ruby-pg-search', :out => File::NULL
-    exit $?.exitstatus
-  end
-end
-
-# TODO Use this code in order to install extensions.
-#
-# unless system 'dpkg -s postgresql-contrib', :out => File::NULL
-#   unless  update
-#     system'sudo apt-get update', :out => File::NULL
-#   end
-#   unless system 'sudo apt-get install -y postgresql-contrib', :out => File::NULL
-#     exit $?.exitstatus
-#   end
-# end
-#
-#
-# require 'yaml'
-#
-# config = YAML.load_file(File.dirname(__FILE__) + '/' + File.join('..', '..','config', 'database.yml'))
-# config.each do |key, value|
-#   database_name = value['database']
-#   next unless system("psql -lqt | cut -d '|' -f 1 | grep -qw #{database_name}") # Check if database exists
-#   system "2>/dev/null 1>&2 sudo -u postgres psql -d #{database_name} -c 'CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pg_trgm;' "
-# end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/d6fc51a1bf2a2322028727b4349c88056756fe95...56f7506826c0f907d1c10bc477969abb13fec494

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/d6fc51a1bf2a2322028727b4349c88056756fe95...56f7506826c0f907d1c10bc477969abb13fec494
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170915/dcb3b9e8/attachment-0001.html>


More information about the Noosfero-dev mailing list