From 74c24a37a236d20618f6c77f2605c74e3b4ab81d Mon Sep 17 00:00:00 2001 From: Kim Taylor Date: Wed, 25 Sep 2024 23:09:08 +1000 Subject: [PATCH] Pick up changes that were on server. --- make-council-pages.sh | 4 ++-- upload-media.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/make-council-pages.sh b/make-council-pages.sh index 568b1e0..bed59c6 100755 --- a/make-council-pages.sh +++ b/make-council-pages.sh @@ -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 diff --git a/upload-media.sh b/upload-media.sh index 9a3ae71..fe3c88d 100755 --- a/upload-media.sh +++ b/upload-media.sh @@ -7,7 +7,7 @@ # Additionally, make sure the wp-cli/restful package is installed in the wp command (via "wp package install wp-cli/restful") # 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" media_path="$1"