Replace local blog url

This commit is contained in:
Bob Mottram 2015-09-12 19:12:17 +01:00
parent d048fa72db
commit c389fb4607
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ ZERONET_CONFIG=$ZERONET_INSTALL/bootstrap
function create_index {
if [ -f $ZERONET_INDEX ]; then
sed -i "s|.*My Blog.*| <li><a href=\"$(cat /home/$MY_USERNAME/.config/zeronet/myblog)\">My Blog</a></li>|g" $ZERONET_INDEX
sed -i "s|.*My Forum.*| <li><a href=\"$(cat /home/$MY_USERNAME/.config/zeronet/myforum)\">My Forum</a></li>|g" $ZERONET_INDEX
return
fi
echo '<!DOCTYPE html>' > $ZERONET_INDEX