Replace local blog url
This commit is contained in:
parent
d048fa72db
commit
c389fb4607
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue