Pick up changes that were on server.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user