Changeset 3795 for sample

Show
Ignore:
Timestamp:
06/20/11 16:47:57 (11 months ago)
Author:
elemoine
Message:

sample - create_database grants permissions on the pois table and sequence

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sample/trunk/geodata/create_database.bash.in

    r3741 r3795  
    2121    if [[ -f $${dirname}/$${shapefile}.shp ]]; then 
    2222        shp2pgsql -s 900913 -I -W UTF8 $${dirname}/$${shapefile}.shp public.$${shapefile} | psql --quiet -d $${dbname} 
     23        psql --quiet -d $${dbname} -c "GRANT ALL ON TABLE public.$${shapefile} TO \"$${dbuser}\";" 
     24        psql --quiet -d $${dbname} -c "GRANT ALL ON TABLE public.$${shapefile}_gid_seq TO \"$${dbuser}\";" 
    2325    fi 
    2426}