File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
.github/files/test-plugin-update Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33set -eo pipefail
44
5- echo " ::group::Setup database"
5+ echo " ::group::Set up database"
66cat << EOF > ~/.my.cnf
77[client]
88host=${MYSQL_HOST%:* }
@@ -16,7 +16,7 @@ mysql -e "drop database if exists wordpress;"
1616mysql -e " create database wordpress;"
1717echo " ::endgroup::"
1818
19- echo " ::group::Setup WordPress"
19+ echo " ::group::Set up WordPress"
2020mkdir -p /var/log/php/ /var/scripts/
2121cd /var/www/html
2222sed -i ' s/apachectl -D FOREGROUND/apachectl start/' /usr/local/bin/run
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ user="${APACHE_RUN_USER:-www-data}"
1313group=" ${APACHE_RUN_GROUP:- www-data} "
1414
1515# Download WordPress
16- [ -f /var/www/html/xmlrpc.php ] || wp core download
16+ # Sometimes it fails, and a retry would be nice:
17+ # https://github.com/wp-cli/core-command/pull/258
18+ # https://github.com/wp-cli/wp-cli/pull/6140
19+ # For now this should work well enough
20+ [ -f /var/www/html/xmlrpc.php ] || wp core download || sleep $(( 30 + RANDOM % 8 )) && wp core download
1721
1822# Configure WordPress
1923if [ ! -f /var/www/html/wp-config.php ]; then
You can’t perform that action at this time.
0 commit comments