Skip to content
Snippets Groups Projects
Commit 6466b208 authored by Bob Mottram's avatar Bob Mottram
Browse files

Opening local sites

parent b9a96be1
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ function install_zeronet_blog {
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
mkdir -p /home/$MY_USERNAME/.config/zeronet
fi
echo "$ZERONET_BLOG_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myblog
echo "$ZERONET_URL/$ZERONET_BLOG_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myblog
if ! grep -q "ZeroNet Blog address" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
......@@ -169,7 +169,7 @@ function install_zeronet_forum {
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
mkdir -p /home/$MY_USERNAME/.config/zeronet
fi
echo "$ZERONET_FORUM_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myforum
echo "$ZERONET_URL/$ZERONET_FORUM_ADDRESS" > /home/$MY_USERNAME/.config/zeronet/myforum
if ! grep -q "ZeroNet Forum address" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
......
......@@ -63,8 +63,8 @@ function create_index {
echo "<H2>Your Sites</H2>" >> $ZERONET_INDEX
echo '' >> $ZERONET_INDEX
echo '<ol type="square">' >> $ZERONET_INDEX
echo " <li><a href=\"file:///home/$MY_USERNAME/.config/zeronet/myblog\">My Blog</a></li>" >> $ZERONET_INDEX
echo " <li><a href=\"file:///home/$MY_USERNAME/.config/zeronet/myforum\">My Forum</a></li>" >> $ZERONET_INDEX
echo " <li><a href=\"$(cat /home/$MY_USERNAME/.config/zeronet/myblog)\">My Blog</a></li>" >> $ZERONET_INDEX
echo " <li><a href=\"$(cat /home/$MY_USERNAME/.config/zeronet/myforum)\">My Forum</a></li>" >> $ZERONET_INDEX
echo '</ol>' >> $ZERONET_INDEX
echo '' >> $ZERONET_INDEX
echo "<H2>On the Mesh</H2>" >> $ZERONET_INDEX
......@@ -94,7 +94,7 @@ function create_header {
}
function create_footer {
footer_file=${1}-header.html
footer_file=${1}-footer.html
if [ -f $footer_file ]; then
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment