update script
This commit is contained in:
parent
6d966d388f
commit
2e912bc4ab
@ -57,7 +57,7 @@ chmod +x $root_path/instance_*
|
|||||||
echo "Waiting 120 seconds for setup to finish"
|
echo "Waiting 120 seconds for setup to finish"
|
||||||
sleep 120;
|
sleep 120;
|
||||||
echo "Installing WordPress..."
|
echo "Installing WordPress..."
|
||||||
docker exec $name bash -c "cd /home/$(whoami)/public_html; wp core download; chown -R $(whoami) /home/$(whoami)/public_html"
|
docker exec $name bash -c "cd /home/$(whoami)/public_html; wp core download; wp config create --dbname=$(cat /var/lib/mysql/creds |grep Database| awk -F ": " {'print $2'}) --dbuser=$(cat /var/lib/mysql/creds |grep User| awk -F ": " {'print $2'}) --dbpass=$(cat /var/lib/mysql/creds |grep Password| awk -F ": " {'print $2'}) ; chown -R $(whoami) /home/$(whoami)/public_html; "
|
||||||
echo "Local Development Instance Created, to stop run ./instance_stop from within the base directory"
|
echo "Local Development Instance Created, to stop run ./instance_stop from within the base directory"
|
||||||
echo "MySQL DB Credentials"
|
echo "MySQL DB Credentials"
|
||||||
docker exec $name cat /var/lib/mysql/creds
|
docker exec $name cat /var/lib/mysql/creds
|
||||||
|
Loading…
Reference in New Issue
Block a user