{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2285","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2285/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2285/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2285/events","html_url":"https://github.com/wp-cli/wp-cli/issues/2285","id":121392756,"number":2285,"title":"script bash with install","user":{"login":"xavierartot","id":5130192,"avatar_url":"https://avatars.githubusercontent.com/u/5130192?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierartot","html_url":"https://github.com/xavierartot","followers_url":"https://api.github.com/users/xavierartot/followers","following_url":"https://api.github.com/users/xavierartot/following{/other_user}","gists_url":"https://api.github.com/users/xavierartot/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierartot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierartot/subscriptions","organizations_url":"https://api.github.com/users/xavierartot/orgs","repos_url":"https://api.github.com/users/xavierartot/repos","events_url":"https://api.github.com/users/xavierartot/events{/privacy}","received_events_url":"https://api.github.com/users/xavierartot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-10T03:20:49Z","updated_at":"2015-12-10T03:54:37Z","closed_at":null,"body":"Hi,\r\nI'm using MAMP\r\nI don't understand why the script below script doesn't install WP:\r\nhttps://gist.github.com/xavierartot/61f7e6d7ab1e6318a1d0\r\n\r\nIn the terminal I start the script:\r\n\r\nwp-local-complete-install.sh\r\nplease, create your repertoire website\r\ntest5\r\nmkdir: created directory 'test5'\r\ndownloading WordPress\r\nDownloading WordPress 4.4 (en_US)...\r\nUsing cached file '/Users/xavi/.wp-cli/cache/core/wordpress-4.4-en_US.tar.gz'...\r\nSuccess: WordPress downloaded.\r\ncreate the database\r\ncreate the file wp-config.php\r\nSuccess: Generated wp-config.php file.\r\nTITLE\r\nTITLE\r\nYou want som post by default (100 maximum): 2\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Error: The site you have requested is not installed.\r\nRun `wp core install`.\r\n100  2170  100  2170    0     0   3924      0 --:--:-- --:--:-- --:--:--  3931\r\n(23) Failed writing body\r\nError: The site you have requested is not installed.\r\nRun `wp core install`.\r\nError: The site you have requested is not installed.\r\nRun `wp core install`.\r\n\r\nThat mean he doesn't understood this?\r\n\r\nwp core install --url=http://localhost:8888/$rep --title=$TITLE --admin_user=$ADMIN_USER --admin_password=$ADMIN_PASSWORD --admin_email=$EMAIL\r\n"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/163479445","html_url":"https://github.com/wp-cli/wp-cli/issues/2285#issuecomment-163479445","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2285","id":163479445,"user":{"login":"shawnhooper","id":2073284,"avatar_url":"https://avatars.githubusercontent.com/u/2073284?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnhooper","html_url":"https://github.com/shawnhooper","followers_url":"https://api.github.com/users/shawnhooper/followers","following_url":"https://api.github.com/users/shawnhooper/following{/other_user}","gists_url":"https://api.github.com/users/shawnhooper/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnhooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnhooper/subscriptions","organizations_url":"https://api.github.com/users/shawnhooper/orgs","repos_url":"https://api.github.com/users/shawnhooper/repos","events_url":"https://api.github.com/users/shawnhooper/events{/privacy}","received_events_url":"https://api.github.com/users/shawnhooper/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T03:54:37Z","updated_at":"2015-12-10T03:54:37Z","body":"Also, just a tip, you could replace:\r\n\r\n```mysql -u root -p\"root\" -e \"CREATE DATABASE \\`$rep\\`;\"```\r\n\r\nwith\r\n\r\n```wp db create```\r\n\r\nand run it right after you've created your config file. "}}