wordpress do/done channel

This commit is contained in:
qo-op 2021-04-05 00:30:20 +02:00
parent 1509af55f7
commit 1f2dc4ab8f
1 changed files with 2 additions and 2 deletions

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"