Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- php bin/vendors install
- php app/console doctrine:database:create
- php app/console doctrine:schema:create
- echo -n "Initialize ACLs (y/n)? "
- read initACL
- [ "$initACL" == "y" ] && php app/console init:acl
- echo -n "Database storage for sessions (y/n)? "
- read dbSess
- [ "$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;"
- echo -n "Using FOS bundles (y/n)? "
- read useFOS
- if [ "$useFOS" == "y" ]; then
- echo -n "Configure super-admin user for FOSUserBundle (y/n)? "
- read FOSUserAdmin
- [ $FOSUserAdmin == "y" ] && php app/console fos:user:create --super-admin
- if [ "$initAcl" == "y" ]; then
- echo -n "Install ACLs for FOSCommentBundle (y/n)? "
- read FOSCommentACL
- [ "$FOSCommentACL" == "y" ] && php app/console fos:comment:installAces
- fi
- fi
Add Comment
Please, Sign In to add comment