Skip to content

Commit

Permalink
Update fpm-start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 1, 2024
1 parent 09606bc commit f1e4b71
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deploy/config/init/fpm-start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/sh

wp sync-user-roles sync
if wp core is-installed 2>/dev/null; then
# WP is installed.
wp sync-user-roles sync
else
# Fallback if WP is not installed.
# This will happen during a first run on localhost.
echo 'WordPress is not installed yet, so skipping command `wp sync-user-roles sync` in `fpm-start.sh`.'
fi

0 comments on commit f1e4b71

Please sign in to comment.