Verify successful init install

This commit is contained in:
Aleksandar Puharic 2024-10-29 19:39:22 +01:00
parent abcb0d0fe3
commit 108fd72c86
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -54,5 +54,15 @@ main() {
--admin_email="${WORDPRESS_INIT_ADMIN_EMAIL:?}" \
--skip-email
sleep 0.5
# Check if WordPress is already installed
if wp core is-installed 2>&1; then
echo "WordPress installed successfully at ${WORDPRESS_INIT_SITE_URL}"
return 0
fi
echo "Error: WordPress installation failed"
return 1
}
main