From 1bb7f61a51834fcb2e78ff827b006d29bfda52a8 Mon Sep 17 00:00:00 2001 From: Ian Jenkins Date: Mon, 18 Oct 2021 10:30:29 +0100 Subject: [PATCH] [SETUP] Remove sleep from install script. In favour of a retry on wp install. --- bin/install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/install b/bin/install index 49aaa836..848f11ed 100755 --- a/bin/install +++ b/bin/install @@ -90,13 +90,12 @@ if [ ! -z "${STYLEGUIDE_DIR}" ]; then bin/docker/styleguide/yarn encore dev; fi -echo 'Please hold...'; +echo 'Installing WordPress...'; -sleep 10; - -echo 'Thanks for holding, proceeding to install WordPress...'; - -bin/docker/wp core install --url="${WP_HOME}" --title="${PROJECT_NAME}" --admin_user=admin --admin_email=boxuk@example.com; +until bin/docker/wp core install --url="${WP_HOME}" --title="${PROJECT_NAME}" --admin_user=admin --admin_email=boxuk@example.com --skip-email; +do + echo 'Waiting for the database...'; +done echo 'Emptying site...';