use better test for creating ready page
This commit is contained in:
parent
88139f9603
commit
bff1e799f4
|
@ -33,7 +33,6 @@ if $(wp core is-installed);
|
|||
then
|
||||
echo "Wordpress is already installed..."
|
||||
else
|
||||
WORDPRESS_INSTALLING=1
|
||||
declare -p WORDPRESS_TITLE >/dev/null
|
||||
declare -p WORDPRESS_LOGIN >/dev/null
|
||||
declare -p WORDPRESS_PASSWORD >/dev/null
|
||||
|
@ -62,8 +61,10 @@ if ! [[ ${CURRENT_DOMAIN} == ${URL} ]]; then
|
|||
wp search-replace ${CURRENT_DOMAIN} ${URL}
|
||||
fi
|
||||
|
||||
if [[ $WORDPRESS_INSTALLING ]];
|
||||
if $(wp post list --post_type=page --name=ready);
|
||||
then
|
||||
echo "Ready page already exists..."
|
||||
else
|
||||
wp post create \
|
||||
--post_type=page \
|
||||
--post_status=publish \
|
||||
|
|
Loading…
Reference in New Issue