From 186960d407608aa19f4a6e8876eac168df3e6b56 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Sep 2015 09:18:26 +0100 Subject: [PATCH] zeronet install directory --- src/zeronetavahi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index e2454583..d913a945 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -29,20 +29,20 @@ # along with this program. If not, see . TRACKER_PORT=6969 -BOOTSTRAP_FILE=/opt/zeronet/bootstrap -BLOGS_FILE=/opt/zeronet/blogs -FORUM_FILE=/opt/zeronet/forum +ZERONET_INSTALL=/opt/zeronet -if [ ! -d /opt/zeronet ]; then - if [ -d ~/zeronet ]; then - BOOTSTRAP_FILE=~/zeronet/bootstrap - BLOGS_FILE=~/zeronet/blogs - FORUM_FILE=~/zeronet/forum +if [ ! -d $ZERONET_INSTALL ]; then + if [ -d /home/$USER/zeronet ]; then + ZERONET_INSTALL=/home/$USER/zeronet else exit 0 fi fi +BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap +BLOGS_FILE=$ZERONET_INSTALL/blogs +FORUM_FILE=$ZERONET_INSTALL/forum + if [ ! -d /etc/avahi ]; then exit 0 fi