tilde.json now includes user list
continuous-integration/drone/push Build is failing Details

This commit is contained in:
James Tomasino 2020-10-27 19:45:22 +00:00
parent 919d9d3469
commit a3ed7bf2b5
2 changed files with 3 additions and 2 deletions

View File

@ -313,7 +313,8 @@ if [ "$run_user" = "root" ] || [ "$run_user" = "publish" ]; then
cp "/var/cosmic/files/paper.png" "${html_dir}"
# generate tilde.json
printf '{"name": "cosmic.voyage", "url": "https://cosmic.voyage", "signup_url": "https://cosmic.voyage/join.html", "user_count": %s, "want_users": true, "admin_email": "james@tomasino.org", "description": "Cosmic Voyage is a public-access unix system and tilde community based around a collaborative science-fiction universe. Users write stories as the people aboard ships, colonies, and outposts, using the only remaining free, interconnected network that unites the dispersed peoples of the stars."}' "$(grep -E '1[0-9]{3}' "/etc/passwd" | grep -c 'home')" > "${html_dir}/tilde.json"
userlist=$(voyagers | awk '{print "{\"username\":\"" $0 "\"}," }')
printf '{"name": "cosmic.voyage", "url": "https://cosmic.voyage", "signup_url": "https://cosmic.voyage/join.html", "user_count": %s, "want_users": true, "admin_email": "james@tomasino.org", "description": "Cosmic Voyage is a public-access unix system and tilde community based around a collaborative science-fiction universe. Users write stories as the people aboard ships, colonies, and outposts, using the only remaining free, interconnected network that unites the dispersed peoples of the stars.", "users": [%s]}' "$(grep -E '1[0-9]{3}' "/etc/passwd" | grep -c 'home')" "${userlist%?}" > "${html_dir}/tilde.json"
# Let user's know it's done
printf "Web and RSS rebuilt.\\n"

View File

@ -94,7 +94,7 @@ menu:comms:Communication:Reach out and touch someone
exit:E_xit
menu:games:Fun & Games:Games and fun distractions
exec:_Among Sus::/usr/bin/rlwrap nc 167.114.7.65 1234
exec:_Among Sus::/usr/bin/rlwrap nc sus.tildeverse.org 1234
exec:_Bastard Tetris::/usr/games/bastet
exec:_Botany::/usr/local/bin/botany
group:_Crossword..