hide newindex.html from API PUBLIC DATA

This commit is contained in:
fred 2022-11-01 14:55:13 +01:00
parent dd602d5bf8
commit 69b6aee2df
1 changed files with 4 additions and 4 deletions

View File

@ -98,13 +98,13 @@ do
tiddlywiki --load $INDEX \
--import "$HOME/.zen/tmp/${IPFSNODEID}/g1voeu/${ASTRONAUTENS}/${WISHNAME}/${PLAYER}.tiddlers.json" "application/json" \
--output ~/.zen/tmp/${IPFSNODEID}/g1voeu/${ASTRONAUTENS} --render "$:/core/save/all" "newindex.html" "text/plain"
--output ~/.zen/tmp --render "$:/core/save/all" "${ASTRONAUTENS}.newindex.html" "text/plain"
if [[ -s ~/.zen/tmp/${IPFSNODEID}/g1voeu/${ASTRONAUTENS}/newindex.html ]]; then
if [[ -s ~/.zen/tmp/${ASTRONAUTENS}.newindex.html ]]; then
echo "Updating $INDEX"
cp ~/.zen/tmp/${IPFSNODEID}/g1voeu/${ASTRONAUTENS}/newindex.html $INDEX
cp ~/.zen/tmp/${ASTRONAUTENS}.newindex.html $INDEX
else
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/${IPFSNODEID}/g1voeu/${ASTRONAUTENS}/${WISHNAME}/${WISH}/newindex.html"
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/${ASTRONAUTENS}.newindex.html"
echo "XXXXXXXXXXXXXXXXXXXXXXX"
fi