Browse Source

wordpress do/done channel

master
qo-op 1 month ago
parent
commit
1f2dc4ab8f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zen/wordpress_channel.sh

+ 2
- 2
zen/wordpress_channel.sh View File

@ -45,13 +45,13 @@ do
cd /var/www/wordpress/
isWPuser=$(wp user list | grep "$xzuid")
wp post create --post_author="$xzuid" --post_content="<p><a href=\"https://$mynodename/ipns/$ipnsid\" target=\"_blank\" rel=\"noreferrer noopener\">$title</a></p>" --post_title="$title" --post_excerpt="$g1pubsource" --tags_input="$genres" --porcelain
# REPLY done=1
# REPLY IN ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey/done
responsedir="$(echo "$wpcall" | sed 's/ipfs_swarm/ipfs/g')"
mkdir -p $responsedir
echo "1" > $responsedir/done
fi
## I am the destination of that "done / not todo" wpcall
[[ $isdone && ! $istodo ]] && echo rm -Rf ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey/done
[[ $isdone && ! $istodo ]] && echo rm -Rf ~/.zen/ipfs/.$ipfnodesource/astroport/wordpress/$mediakey
else
## I am the source of that "done" wpcall remove "do"


Loading…
Cancel
Save