Guest User

Untitled

a guest
Jan 13th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. echo "Creating database (if it's not already there)"
  2. mysql -u root --password=root -e "CREATE DATABASE IF NOT EXISTS ten"
  3. mysql -u root --password=root -e "GRANT ALL PRIVILEGES ON ten.* TO wp@localhost IDENTIFIED BY 'wp';"
  4. if [ ! -d "wordpress/wp-admin" ]; then
  5. echo 'Installing WordPress (release version) in ten/wordpress...'
  6. if [ ! -d "./wordpress" ]; then
  7. mkdir ./wordpress
  8. fi
  9. cd ./wordpress
  10. wp core config --dbname="ten" --dbuser=wp --dbpass=wp --dbhost="localhost" --dbprefix=wp_ --allow-root --extra-php <<PHP
  11. define('WP_DEBUG', true);
  12. define('WP_DEBUG_LOG', true);
  13. define('WP_DEBUG_DISPLAY', true);
  14. define('SCRIPT_DEBUG', true);
  15. define('SAVEQUERIES', true);
  16. PHP
  17.  
  18. wp theme delete twentythirteen --allow-root; wp theme delete twentyfourteen --allow-root; wp theme delete twentyfifteen --allow-root; wp plugin delete hello --allow-root; wp plugin delete akismet --allow-root; git checkout HEAD .
  19.  
  20. cd -
  21.  
  22. fi
Add Comment
Please, Sign In to add comment