Guest User

Untitled

a guest
Jan 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. php bin/vendors install
  4.  
  5. php app/console doctrine:database:create
  6. php app/console doctrine:schema:create
  7.  
  8. echo -n "Initialize ACLs (y/n)? "
  9. read initACL
  10. [ "$initACL" == "y" ] && php app/console init:acl
  11.  
  12. echo -n "Database storage for sessions (y/n)? "
  13. read dbSess
  14. [ "$dbSess" == "y" ] && php app/console doctrine:query:sql "CREATE TABLE \`session\` (\`session_id\` varchar(255) NOT NULL,\`session_value\` text NOT NULL,\`session_time\` int(11) NOT NULL,PRIMARY KEY (\`session_id\`),UNIQUE KEY \`session_id_idx\` (\`session_id\`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  15.  
  16. echo -n "Using FOS bundles (y/n)? "
  17. read useFOS
  18.  
  19. if [ "$useFOS" == "y" ]; then
  20. echo -n "Configure super-admin user for FOSUserBundle (y/n)? "
  21. read FOSUserAdmin
  22. [ $FOSUserAdmin == "y" ] && php app/console fos:user:create --super-admin
  23.  
  24. if [ "$initAcl" == "y" ]; then
  25. echo -n "Install ACLs for FOSCommentBundle (y/n)? "
  26. read FOSCommentACL
  27. [ "$FOSCommentACL" == "y" ] && php app/console fos:comment:installAces
  28. fi
  29. fi
Add Comment
Please, Sign In to add comment