|
@@ -63,23 +63,23 @@ function tahoelafs_setup_config {
|
63
|
63
|
if ! grep -q "reveal-IP-address" $config_file; then
|
64
|
64
|
sed -i '/[node]/a reveal-IP-address = False' $config_file
|
65
|
65
|
else
|
66
|
|
- sed -i 's|reveal-IP-address.*|reveal-IP-address = False|g' >> $config_file
|
|
66
|
+ sed -i 's|reveal-IP-address.*|reveal-IP-address = False|g' $config_file
|
67
|
67
|
fi
|
68
|
68
|
|
69
|
69
|
if ! grep -q "tcp =" $config_file; then
|
70
|
70
|
sed -i '/[connections]/a tcp = tor' $config_file
|
71
|
71
|
else
|
72
|
|
- sed -i 's|tcp =.*|tcp = tor|g' >> $config_file
|
|
72
|
+ sed -i 's|tcp =.*|tcp = tor|g' $config_file
|
73
|
73
|
fi
|
74
|
74
|
|
75
|
75
|
if ! grep -q "tub.location =" $config_file; then
|
76
|
|
- sed -i '/[node]/a tub.location = disabled' >> $config_file
|
|
76
|
+ sed -i '/[node]/a tub.location = disabled' $config_file
|
77
|
77
|
fi
|
78
|
78
|
if ! grep -q "tub.port =" $config_file; then
|
79
|
|
- sed -i "/[node]/a tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1" >> $config_file
|
|
79
|
+ sed -i "/[node]/a tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1" $config_file
|
80
|
80
|
fi
|
81
|
|
- sed -i "s|tub.port.*|tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1|g" >> $config_file
|
82
|
|
- sed -i "s|tub.location.*|tub.location = tor:${TAHOELAFS_ONION_HOSTNAME}:${TAHOELAFS_PORT}|g" >> $config_file
|
|
81
|
+ sed -i "s|tub.port.*|tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1|g" $config_file
|
|
82
|
+ sed -i "s|tub.location.*|tub.location = tor:${TAHOELAFS_ONION_HOSTNAME}:${TAHOELAFS_PORT}|g" $config_file
|
83
|
83
|
|
84
|
84
|
sed -i "s|nickname =.*|nickname = $HOSTNAME|g" $config_file
|
85
|
85
|
|