Skip to content

Commit

Permalink
Syntax updaet.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangrynenko committed Feb 17, 2024
1 parent 90f72e1 commit 1894968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/scaffold/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ provision_from_wp_profile() {

# Preparing the database
echo "Resetting database..."
docker compose exec -T cli wp db reset --yes
wp db reset --yes --path=/app/web/wp --allow-root

# Install WordPress
echo "Installing website..."
docker compose exec -T cli wp core install --path=/app/web/wp --allow-root --url="${WORDPRESS_SITE_URL}" --title="${WORDPRESS_SITE_NAME}" --admin_user="admin" --admin_password="$(openssl rand -base64 12)" --admin_email="${WORDPRESS_ADMIN_EMAIL:-}"
wp core install --path=/app/web/wp --allow-root --url="${WORDPRESS_SITE_URL}" --title="${WORDPRESS_SITE_NAME}" --admin_user="admin" --admin_password="$(openssl rand -base64 12)" --admin_email="${WORDPRESS_ADMIN_EMAIL:-}"


echo "WordPress site installed successfully."
Expand Down Expand Up @@ -94,7 +94,7 @@ provision_from_wp_profile
info "Finished site provisioning."

# Attempt to check WordPress installation status using WP-CLI
if docker compose exec -T cli wp core is-installed --path=/app/web/wp --allow-root; then
if wp core is-installed --path=/app/web/wp --allow-root; then
echo "WordPress is installed."
else
echo "WordPress is not installed or there was an error checking the installation status."
Expand Down

0 comments on commit 1894968

Please sign in to comment.