Skip to content

Commit 74c4c56

Browse files
committed
add test_wordpress_installed
1 parent dbc6ed2 commit 74c4c56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

staff_migrate.sh

+9
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ script_setup() {
451451
esac
452452
CACHE_UPLOADS_DIR="${CACHE_DIR}/uploads"
453453
CACHE_SQL="${CACHE_DIR}/${PROD_WP_HOST}_export.sql"
454+
test_wordpress_installed
454455
staff_only_notice
455456
}
456457

@@ -512,6 +513,14 @@ test_ssh_to_prod() {
512513
}
513514

514515

516+
test_wordpress_installed() {
517+
if ! wpcli --no-color --quiet core is-installed &> /dev/null
518+
then
519+
error_exit 'initial WordPress install has not been completed'
520+
fi
521+
}
522+
523+
515524
wpcli() {
516525
case "${SCRIPT_ENV}" in
517526
'docker')

0 commit comments

Comments
 (0)