mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 14:13:27 +01:00
Verify successful init install
This commit is contained in:
parent
abcb0d0fe3
commit
108fd72c86
|
@ -54,5 +54,15 @@ main() {
|
||||||
--admin_email="${WORDPRESS_INIT_ADMIN_EMAIL:?}" \
|
--admin_email="${WORDPRESS_INIT_ADMIN_EMAIL:?}" \
|
||||||
--skip-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
|
main
|
||||||
|
|
Loading…
Reference in New Issue
Block a user