Permalink
Browse files

Merge pull request #83 from engineyard/refactored-postgis

fixed error in PostGIS2 recipe
  • Loading branch information...
2 parents 32a8c6f + 91957b2 commit 5585a6697563f161280599027feae1222ec1bc69 @Randommood Randommood committed Mar 11, 2013
@@ -36,7 +36,6 @@
execute "Postgresql loading postgis_comments on database #{dbname_to_use} for version #{pgversion}" do
command "psql -U postgres -d #{dbname_to_use} -f /usr/share/postgresql-#{pgversion}/contrib/postgis-1.5/postgis_comments.sql"
end
-
end
execute "Grant permissions to the deploy user on the geometry_columns schema" do
@@ -4,8 +4,10 @@
if @node[:postgres_version] == "9.2"
include_recipe "postgresql9_extensions::ext_postgis2_install"
- execute "Create PostGIS Extension" do
- command "psql -U postgres -d #{dbname_to_use} -c \"CREATE EXTENSION postgis;\""
+ load_sql_file do
+ db_name dbname_to_use
+ supported_versions %w[9.2]
+ extname "postgis"
end
execute "Grant permissions to the deploy user on the geometry_columns schema" do

0 comments on commit 5585a66

Please sign in to comment.