Bläddra i källkod

zeronet install directory

Bob Mottram 9 år sedan
förälder
incheckning
186960d407
1 ändrade filer med 9 tillägg och 9 borttagningar
  1. 9
    9
      src/zeronetavahi

+ 9
- 9
src/zeronetavahi Visa fil

29
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
30
 
30
 
31
 TRACKER_PORT=6969
31
 TRACKER_PORT=6969
32
-BOOTSTRAP_FILE=/opt/zeronet/bootstrap
33
-BLOGS_FILE=/opt/zeronet/blogs
34
-FORUM_FILE=/opt/zeronet/forum
35
-
36
-if [ ! -d /opt/zeronet ]; then
37
-    if [ -d ~/zeronet ]; then
38
-        BOOTSTRAP_FILE=~/zeronet/bootstrap
39
-        BLOGS_FILE=~/zeronet/blogs
40
-        FORUM_FILE=~/zeronet/forum
32
+ZERONET_INSTALL=/opt/zeronet
33
+
34
+if [ ! -d $ZERONET_INSTALL ]; then
35
+    if [ -d /home/$USER/zeronet ]; then
36
+        ZERONET_INSTALL=/home/$USER/zeronet
41
     else
37
     else
42
         exit 0
38
         exit 0
43
     fi
39
     fi
44
 fi
40
 fi
45
 
41
 
42
+BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap
43
+BLOGS_FILE=$ZERONET_INSTALL/blogs
44
+FORUM_FILE=$ZERONET_INSTALL/forum
45
+
46
 if [ ! -d /etc/avahi ]; then
46
 if [ ! -d /etc/avahi ]; then
47
     exit 0
47
     exit 0
48
 fi
48
 fi