Set username
This commit is contained in:
parent
6466b208a6
commit
33f9c434e2
|
@ -34,10 +34,11 @@
|
||||||
WEB_PAGE_TITLE="Freedombone Mesh"
|
WEB_PAGE_TITLE="Freedombone Mesh"
|
||||||
TRACKER_PORT=6969
|
TRACKER_PORT=6969
|
||||||
ZERONET_INSTALL=/opt/zeronet
|
ZERONET_INSTALL=/opt/zeronet
|
||||||
|
MY_USERNAME=$USER
|
||||||
|
|
||||||
if [ ! -d $ZERONET_INSTALL ]; then
|
if [ ! -d $ZERONET_INSTALL ]; then
|
||||||
if [ -d /home/$USER/zeronet ]; then
|
if [ -d /home/$MY_USERNAME/zeronet ]; then
|
||||||
ZERONET_INSTALL=/home/$USER/zeronet
|
ZERONET_INSTALL=/home/$MY_USERNAME/zeronet
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -46,7 +47,7 @@ fi
|
||||||
BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap
|
BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap
|
||||||
BLOGS_FILE=$ZERONET_INSTALL/freedombone-blogs
|
BLOGS_FILE=$ZERONET_INSTALL/freedombone-blogs
|
||||||
FORUM_FILE=$ZERONET_INSTALL/freedombone-fora
|
FORUM_FILE=$ZERONET_INSTALL/freedombone-fora
|
||||||
ZERONET_INDEX=/home/$USER/mesh.html
|
ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
|
||||||
|
|
||||||
function create_index {
|
function create_index {
|
||||||
if [ -f $ZERONET_INDEX ]; then
|
if [ -f $ZERONET_INDEX ]; then
|
||||||
|
|
Loading…
Reference in New Issue