SHARE
TWEET

Untitled

a guest Nov 14th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #First param, where the install should go
  3. #
  4.  
  5. MYDIR=$1
  6. MAINDB=$2
  7. MYUSR=$3
  8. MYPWD=$4
  9.  
  10. mysql -uroot -proot -e "CREATE DATABASE $MAINDB"
  11.  
  12. (cd '/applications/mamp/htdocs/' && mkdir $MYDIR)
  13.  
  14. (cd '/applications/mamp/htdocs/'$MYDIR && wp core download)
  15.  
  16. (cd '/applications/mamp/htdocs/'$MYDIR && wp config create --dbname=$MAINDB --dbuser=$MYUSR --dbpass=$MYPWD)
RAW Paste Data
Top