Sha256: d88dd721beb65d662c026c5008943de0b48e6d4d527c044aae943166c77479c1
Contents?: true
Size: 650 Bytes
Versions: 29
Compression:
Stored size: 650 Bytes
Contents
namespace :rubber do namespace :discourse do after "rubber:postgresql:bootstrap", "rubber:discourse:create_postgres_extensions" task :create_postgres_extensions, :roles => :postgresql_master do rsudo "export DEBIAN_FRONTEND=noninteractive; apt-get -q -o Dpkg::Options::=--force-confold -y --force-yes install postgresql-contrib" rubber.sudo_script "create_extensions", <<-ENDSCRIPT sudo -i -u postgres psql -c "CREATE EXTENSION IF NOT EXISTS hstore;" -d "#{rubber_env.db_name}" sudo -i -u postgres psql -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;" -d "#{rubber_env.db_name}" ENDSCRIPT end end end
Version data entries
29 entries across 29 versions & 1 rubygems