wordpress do/done channel
This commit is contained in:
parent
1509af55f7
commit
1f2dc4ab8f
|
@ -45,13 +45,13 @@ do
|
||||||
cd /var/www/wordpress/
|
cd /var/www/wordpress/
|
||||||
isWPuser=$(wp user list | grep "$xzuid")
|
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
|
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')"
|
responsedir="$(echo "$wpcall" | sed 's/ipfs_swarm/ipfs/g')"
|
||||||
mkdir -p $responsedir
|
mkdir -p $responsedir
|
||||||
echo "1" > $responsedir/done
|
echo "1" > $responsedir/done
|
||||||
fi
|
fi
|
||||||
## I am the destination of that "done / not todo" wpcall
|
## 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
|
else
|
||||||
## I am the source of that "done" wpcall remove "do"
|
## I am the source of that "done" wpcall remove "do"
|
||||||
|
|
Loading…
Reference in New Issue