Opening local sites

This commit is contained in:
Bob Mottram 2015-09-03 12:20:32 +01:00
parent b9a96be145
commit 6466b208a6
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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