Update deploy.sh
This commit is contained in:
parent
94d8ced366
commit
e2cd59e08b
11
deploy.sh
11
deploy.sh
@ -11,6 +11,8 @@
|
|||||||
#adminEmail="test@test.com"
|
#adminEmail="test@test.com"
|
||||||
#siteURL="test.url.com"
|
#siteURL="test.url.com"
|
||||||
#siteProto="http://"
|
#siteProto="http://"
|
||||||
|
|
||||||
|
wwwUser="nginx"
|
||||||
#### DON"T TOUCH BELOW HERE ####
|
#### DON"T TOUCH BELOW HERE ####
|
||||||
|
|
||||||
get_info () {
|
get_info () {
|
||||||
@ -208,10 +210,11 @@ create_wp_db
|
|||||||
# Create site with wp-cli
|
# Create site with wp-cli
|
||||||
mkdir -p "${siteFP}" || exit
|
mkdir -p "${siteFP}" || exit
|
||||||
cd "${siteFP}" || exit
|
cd "${siteFP}" || exit
|
||||||
wp core download
|
chown -R "${wwwUser}":"${wwwUser}" "$(dirname "${siteFP}")"
|
||||||
wp config create --dbname="$(siteNoP}" --dbuser="$(siteNoP}" --dbpass="${wpasswd}" --path="${siteFP}"
|
sudo -u "${wwwUser}" wp core download
|
||||||
wp core install --url="${siteURL}" --title="${siteTitle}" --admin_user="wpm258159" --admin_password="${wpapasswd}" --admin_email="${adminEmail}" --path="${siteFP}" --skip-email
|
sudo -u "${wwwUser}" wp config create --dbname="$(siteNoP}" --dbuser="$(siteNoP}" --dbpass="${wpasswd}" --path="${siteFP}"
|
||||||
chown -R nginx:nginx "${siteFP}"
|
sudo -u "${wwwUser}" wp core install --url="${siteURL}" --title="${siteTitle}" --admin_user="wpm258159" --admin_password="${wpapasswd}" --admin_email="${adminEmail}" --path="${siteFP}" --skip-email
|
||||||
|
|
||||||
|
|
||||||
# Confiugre nginx and create config
|
# Confiugre nginx and create config
|
||||||
nginx-conf
|
nginx-conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user