From 5b0c429dc52206e018b35e4f445bed773ad68411 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Sep 2015 20:38:55 +0100 Subject: [PATCH] Refining the zeronet forum --- src/freedombone-meshweb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/freedombone-meshweb b/src/freedombone-meshweb index 89f85d63..f59e3565 100755 --- a/src/freedombone-meshweb +++ b/src/freedombone-meshweb @@ -19,6 +19,8 @@ ZERONET_DIR=/home/$MY_USERNAME/zeronet UPDATED="no" ZERONET_DEFAULT_BLOG_TITLE="$(hostname)'s Blog" ZERONET_DEFAULT_BLOG_TAGLINE="Blogging on the Mesh" +ZERONET_DEFAULT_FORUM_TITLE="$(hostname)'s Forum" +ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group" function install_zeronet_blog { if [ ! -f /home/$MY_USERNAME/README ]; then @@ -163,10 +165,11 @@ function install_zeronet_forum { echo "Forum address: $ZERONET_FORUM_ADDRESS" echo "Forum private key: $ZERONET_FORUM_PRIVATE_KEY" cp -r $ZERONET_DIR/ZeroTalk/* $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS - sed -i "s/ZeroBoard/$(hostname)'s Forum/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html - sed -i "s/ZeroTalk/$(hostname)'s Forum/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html - sed -i 's|

.*|

Freedom in the Mesh

|g' $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html - sed -i "s/Messaging Board Demo/Messaging Board/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/content.json + sed -i "s/ZeroBoard/$ZERONET_DEFAULT_FORUM_TITLE/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html + sed -i "s/ZeroTalk/$ZERONET_DEFAULT_FORUM_TITLE/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html + sed -i 's|Demo for dynamic, decentralized content publishing.|$ZERONET_DEFAULT_FORUM_TAGLINE|g' $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html + sed -i 's/Messaging Board Demo/Messaging Board/g' $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/content.json + sed -i "s/ZeroBoard/$ZERONET_DEFAULT_FORUM_TITLE/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/content.json python zeronet.py siteSign $ZERONET_FORUM_ADDRESS $ZERONET_FORUM_PRIVATE_KEY # Add an avahi service