Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion images/src/wpvip-base/.devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"x-build": {
"name": "WPVIP",
"image-name": "wpvip-base",
"image-version": "0.0.25"
"image-version": "0.0.26"
},
"remoteUser": "vscode",
"postStartCommand": "/usr/local/bin/post-start.sh",
Expand Down
8 changes: 4 additions & 4 deletions images/src/wpvip-base/rootfs/usr/local/bin/post-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ echo "Checking out submodules..."

echo "Waiting for MySQL to come online..."
second=0
while ! mysqladmin ping -uroot -ppassword -hdatabase --silent && [ "${second}" -lt 60 ]; do
while ! mysqladmin ping -uroot -ppassword -hdatabase --silent --ssl=0 && [ "${second}" -lt 60 ]; do
sleep 1
second=$((second+1))
second=$((second + 1))
done
if ! mysqladmin ping -uroot -ppassword -hdatabase --silent; then
if ! mysqladmin ping -uroot -ppassword -hdatabase --silent --ssl=0; then
echo "ERROR: mysql has failed to come online"
exit 1;
exit 1
fi

sudo -u www-data -E wp core install \
Expand Down