Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SECONDS=0;
- rm -rf app/cache/prod app/cache/Temp
- DB=$(sed -n -e 's/^.*database_name: //p' app/config/parameters.yml) && \
- DB_USER=$(sed -n -e 's/^.*database_user: //p' app/config/parameters.yml) && \
- MYSQL_PWD=$(sed -n -e 's/^.*database_password: //p' app/config/parameters.yml);
- mysql -e "drop database $DB;" -u $DB_USER && mysql -e "create database $DB;" -u $DB_USER;
- sed -i -e 's/installed: .*$/installed: null/g' app/config/parameters.yml
- app/console oro:install --drop-database --user-name=admin \
- --user-email=admin@example.com --user-firstname=John \
- --user-lastname=Doe --user-password=admin --organization-name=ORO \
- --env=prod --sample-data=n --timeout=3000 \
- --application-url=$1;
- duration=$SECONDS;
- echo $(date -u -d @"$duration" +'%-Mm %-Ss elapsed.');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement