lib/templates/create/roles/admin.sh in sunzi-rails-0.2.0 vs lib/templates/create/roles/admin.sh in sunzi-rails-0.2.1
- old
+ new
@@ -3,11 +3,15 @@
start=$(sunzi.start_time)
source recipes/setup.sh
source recipes/libraries.sh
source recipes/nodejs.sh
+<% case @attributes.db_adapter -%>
+<% when 'postgresql' -%>
source recipes/postgres.sh
-# source recipes/mysql.sh
+<% when 'mysql', 'mysql2' -%>
+source recipes/mysql.sh
+<% end -%>
source recipes/passenger.sh
source recipes/user.sh
# source recipes/sysstat.sh
sunzi.elapsed_time $start