From 392dd085fee41a73bdcbb33a8b3abc75813692f7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 4 Mar 2017 22:55:30 +0000 Subject: [PATCH] Bad sed syntax --- src/freedombone-app-tahoelafs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index 02afe4fa..065b594d 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -63,23 +63,23 @@ function tahoelafs_setup_config { if ! grep -q "reveal-IP-address" $config_file; then sed -i '/[node]/a reveal-IP-address = False' $config_file else - sed -i 's|reveal-IP-address.*|reveal-IP-address = False|g' >> $config_file + sed -i 's|reveal-IP-address.*|reveal-IP-address = False|g' $config_file fi if ! grep -q "tcp =" $config_file; then sed -i '/[connections]/a tcp = tor' $config_file else - sed -i 's|tcp =.*|tcp = tor|g' >> $config_file + sed -i 's|tcp =.*|tcp = tor|g' $config_file fi if ! grep -q "tub.location =" $config_file; then - sed -i '/[node]/a tub.location = disabled' >> $config_file + sed -i '/[node]/a tub.location = disabled' $config_file fi if ! grep -q "tub.port =" $config_file; then - sed -i "/[node]/a tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1" >> $config_file + sed -i "/[node]/a tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1" $config_file fi - sed -i "s|tub.port.*|tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1|g" >> $config_file - sed -i "s|tub.location.*|tub.location = tor:${TAHOELAFS_ONION_HOSTNAME}:${TAHOELAFS_PORT}|g" >> $config_file + sed -i "s|tub.port.*|tub.port = tcp:${TAHOELAFS_ONION_PORT}:interface=127.0.0.1|g" $config_file + sed -i "s|tub.location.*|tub.location = tor:${TAHOELAFS_ONION_HOSTNAME}:${TAHOELAFS_PORT}|g" $config_file sed -i "s|nickname =.*|nickname = $HOSTNAME|g" $config_file