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"