From c09b186f68c948282f53d0a42d4b39d8798729f9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Sep 2015 19:06:44 +0100 Subject: [PATCH] Tidying --- src/zeronetavahi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index d7c6a2b9..bb1a7f0e 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -34,6 +34,7 @@ WEB_PAGE_TITLE="Freedombone Mesh" TRACKER_PORT=6969 ZERONET_INSTALL=/opt/zeronet +ZERONET_USER_HOME=/home/zeronet MY_USERNAME=$USER if [ ! -d $ZERONET_INSTALL ]; then @@ -221,7 +222,7 @@ rm -f $TEMPFILE cp -f $BOOTSTRAP_FILE.new $BOOTSTRAP_FILE rm -f $BOOTSTRAP_FILE.new -if [ -d /home/zeronet ]; then +if [ -d $ZERONET_USER_HOME ]; then sudo chown zeronet:zeronet $BOOTSTRAP_FILE fi @@ -237,14 +238,14 @@ create_index # create a web page showing the available blogs cat ${BLOGS_FILE}-header.html ${BLOGS_FILE}.new ${BLOGS_FILE}-footer.html > ${BLOGS_FILE}.html rm -f ${BLOGS_FILE}.new -if [ -d /home/zeronet ]; then +if [ -d $ZERONET_USER_HOME ]; then sudo chown zeronet:zeronet $BLOGS_FILE fi # create a web page showing the available fora cat ${FORUM_FILE}-header.html ${FORUM_FILE}.new ${FORUM_FILE}-footer.html > ${FORUM_FILE}.html rm -f ${FORUM_FILE}.new -if [ -d /home/zeronet ]; then +if [ -d $ZERONET_USER_HOME ]; then sudo chown zeronet:zeronet $FORUM_FILE fi