Opening local sites
This commit is contained in:
parent
b9a96be145
commit
6466b208a6
|
@ -88,7 +88,7 @@ function install_zeronet_blog {
|
||||||
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
|
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
|
||||||
mkdir -p /home/$MY_USERNAME/.config/zeronet
|
mkdir -p /home/$MY_USERNAME/.config/zeronet
|
||||||
fi
|
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
|
if ! grep -q "ZeroNet Blog address" /home/$MY_USERNAME/README; then
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
|
@ -169,7 +169,7 @@ function install_zeronet_forum {
|
||||||
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
|
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
|
||||||
mkdir -p /home/$MY_USERNAME/.config/zeronet
|
mkdir -p /home/$MY_USERNAME/.config/zeronet
|
||||||
fi
|
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
|
if ! grep -q "ZeroNet Forum address" /home/$MY_USERNAME/README; then
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
|
|
|
@ -63,8 +63,8 @@ function create_index {
|
||||||
echo "<H2>Your Sites</H2>" >> $ZERONET_INDEX
|
echo "<H2>Your Sites</H2>" >> $ZERONET_INDEX
|
||||||
echo '' >> $ZERONET_INDEX
|
echo '' >> $ZERONET_INDEX
|
||||||
echo '<ol type="square">' >> $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=\"$(cat /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/myforum)\">My Forum</a></li>" >> $ZERONET_INDEX
|
||||||
echo '</ol>' >> $ZERONET_INDEX
|
echo '</ol>' >> $ZERONET_INDEX
|
||||||
echo '' >> $ZERONET_INDEX
|
echo '' >> $ZERONET_INDEX
|
||||||
echo "<H2>On the Mesh</H2>" >> $ZERONET_INDEX
|
echo "<H2>On the Mesh</H2>" >> $ZERONET_INDEX
|
||||||
|
@ -94,7 +94,7 @@ function create_header {
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_footer {
|
function create_footer {
|
||||||
footer_file=${1}-header.html
|
footer_file=${1}-footer.html
|
||||||
if [ -f $footer_file ]; then
|
if [ -f $footer_file ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue