Pick up changes that were on server.

This commit is contained in:
Kim Taylor
2024-09-25 23:09:08 +10:00
parent 802c091ba2
commit 74c24a37a2
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
DATA_PATH="../spl-data"
# Controls the flags that are passed to every usage of the wp command.
WP_FLAGS="--allow-root --path=/var/www/html"
#WP_FLAGS="--allow-root --path=/var/www/html"
function create_or_update_page() {
local council_block="$1"
@@ -47,7 +47,7 @@ function create_or_update_page() {
echo "$content" | wp post update "$page_id" --post_content="$content" $WP_FLAGS -
else
echo "Create page $short_name"
echo "$content" | wp post create --post_type=page --post_title="$short_name" --post_status=publish $WP_FLAGS -
echo "$content" | wp post create --post_type=page --post_title="$short_name" --post_status=draft $WP_FLAGS -
fi
else