Set username

This commit is contained in:
Bob Mottram 2015-09-03 12:23:57 +01:00
parent 6466b208a6
commit 33f9c434e2
1 changed files with 4 additions and 3 deletions

View File

@ -34,10 +34,11 @@
WEB_PAGE_TITLE="Freedombone Mesh"
TRACKER_PORT=6969
ZERONET_INSTALL=/opt/zeronet
MY_USERNAME=$USER
if [ ! -d $ZERONET_INSTALL ]; then
if [ -d /home/$USER/zeronet ]; then
ZERONET_INSTALL=/home/$USER/zeronet
if [ -d /home/$MY_USERNAME/zeronet ]; then
ZERONET_INSTALL=/home/$MY_USERNAME/zeronet
else
exit 0
fi
@ -46,7 +47,7 @@ fi
BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap
BLOGS_FILE=$ZERONET_INSTALL/freedombone-blogs
FORUM_FILE=$ZERONET_INSTALL/freedombone-fora
ZERONET_INDEX=/home/$USER/mesh.html
ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
function create_index {
if [ -f $ZERONET_INDEX ]; then