Refining the zeronet forum
This commit is contained in:
parent
c0feca72d0
commit
5b0c429dc5
|
@ -19,6 +19,8 @@ ZERONET_DIR=/home/$MY_USERNAME/zeronet
|
||||||
UPDATED="no"
|
UPDATED="no"
|
||||||
ZERONET_DEFAULT_BLOG_TITLE="$(hostname)'s Blog"
|
ZERONET_DEFAULT_BLOG_TITLE="$(hostname)'s Blog"
|
||||||
ZERONET_DEFAULT_BLOG_TAGLINE="Blogging on the Mesh"
|
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 {
|
function install_zeronet_blog {
|
||||||
if [ ! -f /home/$MY_USERNAME/README ]; then
|
if [ ! -f /home/$MY_USERNAME/README ]; then
|
||||||
|
@ -163,10 +165,11 @@ function install_zeronet_forum {
|
||||||
echo "Forum address: $ZERONET_FORUM_ADDRESS"
|
echo "Forum address: $ZERONET_FORUM_ADDRESS"
|
||||||
echo "Forum private key: $ZERONET_FORUM_PRIVATE_KEY"
|
echo "Forum private key: $ZERONET_FORUM_PRIVATE_KEY"
|
||||||
cp -r $ZERONET_DIR/ZeroTalk/* $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS
|
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/ZeroBoard/$ZERONET_DEFAULT_FORUM_TITLE/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/ZeroTalk/$ZERONET_DEFAULT_FORUM_TITLE/g" $ZERONET_DIR/data/$ZERONET_FORUM_ADDRESS/index.html
|
||||||
sed -i 's|<h3 class="description">.*|<h3 class="description">Freedom in the Mesh</h3>|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/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
|
python zeronet.py siteSign $ZERONET_FORUM_ADDRESS $ZERONET_FORUM_PRIVATE_KEY
|
||||||
|
|
||||||
# Add an avahi service
|
# Add an avahi service
|
||||||
|
|
Loading…
Reference in New Issue