Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Download the core
- wp core download
- #DB SETUP
- printf "What is your dbname: "
- read DBNAME
- printf "What is your dbuser: "
- read DBUSER
- printf "What is your dbpass: "
- read DBPASS
- printf "What is your dbhost: "
- read DBHOST
- printf "What is your dbprefix (with the '_'): "
- read DBPREFIX
- #make it so
- wp core config --dbname=$DBNAME --dbuser=$DBUSER --dbpass=$DBPASS --dbprefix=$DBPREFIX --dbhost=$DBHOST
- #WP SETUP
- printf "What is your WP URL: "
- read WPURL
- printf "What admin username would you like to use?: "
- read WPADMINNAME
- printf "What's your email?: "
- read WPADMINEMAIL
- printf "Which password would you like?: "
- read WPADMINPASS
- printf "What is the title of this WordPress site?: "
- read WPNAME
- #make it so
- wp core install --url=$WPURL --title=$WPNAME --admin_name=$WPADMINNAME --admin_email=$WPADMINEMAIL --admin_password=$WPADMINPASS
- #set the permalinks
- wp option update permalink_structure '/%postname%/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement