lib/templates/mysql/install_db.sql.erb in capitate-0.1.9 vs lib/templates/mysql/install_db.sql.erb in capitate-0.2.1

- old
+ new

@@ -1,6 +1,6 @@ -<% locations_for_grant.each do |location| %> -GRANT ALL PRIVILEGES ON <%= db_name %>.* TO '<%= db_user %>'@'<%= location %>' IDENTIFIED BY '<%= db_pass %>'; +<% grant_locations.each do |location| %> +GRANT <%= grant %> ON <%= db_name %>.* TO '<%= db_user %>'@'<%= location %>' IDENTIFIED BY '<%= db_pass %>'; <% end %> CREATE DATABASE IF NOT EXISTS <%= db_name %>; FLUSH PRIVILEGES; \ No newline at end of file