|
@@ -29,20 +29,20 @@
|
29
|
29
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
30
|
30
|
|
31
|
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
|
37
|
else
|
42
|
38
|
exit 0
|
43
|
39
|
fi
|
44
|
40
|
fi
|
45
|
41
|
|
|
42
|
+BOOTSTRAP_FILE=$ZERONET_INSTALL/bootstrap
|
|
43
|
+BLOGS_FILE=$ZERONET_INSTALL/blogs
|
|
44
|
+FORUM_FILE=$ZERONET_INSTALL/forum
|
|
45
|
+
|
46
|
46
|
if [ ! -d /etc/avahi ]; then
|
47
|
47
|
exit 0
|
48
|
48
|
fi
|