Skip to content

Commit 6fcd921

Browse files
committed
add db update and check
1 parent e4761da commit 6fcd921

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

setup-wordpress.sh

+16
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,24 @@ utils_info() {
127127
echo
128128
}
129129

130+
wordpress_update_db() {
131+
header 'Update WordPress database'
132+
wpcli core update-db
133+
echo
134+
}
135+
136+
137+
wordpress_db_check() {
138+
header 'Check WordPress database'
139+
wpcli db check
140+
echo
141+
}
142+
130143

131144
wordpress_status() {
132145
header 'Show maintenance mode status to expose any PHP Warnings'
133146
wpcli maintenance-mode status
147+
echo
134148
}
135149

136150

@@ -152,4 +166,6 @@ install_wordpress
152166
activate_plugins
153167
activate_themes
154168
enable_permalinks
169+
wordpress_update_db
170+
wordpress_db_check
155171
wordpress_status

0 commit comments

Comments
 (0)