Compare commits

..

No commits in common. "b2b3d284a6b3454e2ba88b90caee97ac8859ce0f" and "6d966d388fe6320dba3eb68369e3f057b62288fb" have entirely different histories.

View File

@ -57,10 +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..."
wpdbuser=$(docker exec $name cat /var/lib/mysql/creds |grep User| awk -F ": " {'print $2'}) docker exec $name bash -c "cd /home/$(whoami)/public_html; wp core download; chown -R $(whoami) /home/$(whoami)/public_html"
wpdbpass=$(docker exec $name cat /var/lib/mysql/creds |grep Password| awk -F ": " {'print $2'})
wpdb=$(docker exec $name cat /var/lib/mysql/creds |grep Database| awk -F ": " {'print $2'})
docker exec $name bash -c "cd /home/$(whoami)/public_html; wp core download; wp config create --dbname=$wpdb --dbuser=$wpdbuser --dbpass=$wpdbpass ; chown -R $(whoami):$(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