Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created March 29, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/fbc8a13a30356fc6626a6a962d3fa087 to your computer and use it in GitHub Desktop.
Save tribulant/fbc8a13a30356fc6626a6a962d3fa087 to your computer and use it in GitHub Desktop.
1 #!/bin/bash
5 #
7 # Setup WP instal wi
9 # Expects 1 param:
11 #
15 echo "=======
17 echo " Initial D
19 echo "=======
24 mkdir ~/project/ $1
28 cd ~/projects/ $1
30 wget http: //wordp.o
32 tar xfz latest.tar.gz
34 mv wordpress/* ./
36 sleep 1
38 rmdir ./wordpre/
42 rm -f latest.tar.gz
44 echo " "
46 echo "=======
48 echo " Configu wp-c
50 echo "=======
52 echo " "
54 sleep 2
58 mv wp-config-sampl.p
60 sed -i.bak s/datab_
62 sed -i.bak s/usern_
64 sed -i.bak s/passw_
68 echo " "
echo "=======
echo " Creatin the f
echo "=======
echo " "
sleep 2
mkdir ~/project/ $1 /w-
cp -R ~/underst-0.3
echo "=======
echo " Project $1 re
echo "=======
echo " "
sleep 2
echo "=======
echo " Step1: Crea d
echo "=======
echo " "
sleep 2
echo "=======
echo "=======
echo " "
sleep 2
cd ~/projects/ $1 /wp-c
npm install
subl .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment