From f08b54efa94987227c8ee3821207d2434b2c5fe7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 5 Mar 2017 23:34:08 +0000 Subject: [PATCH] Disable port --- src/freedombone-app-tahoelafs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index fb95ce1f..3e1eeaac 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -373,6 +373,11 @@ function install_tahoelafs { else echo 'tub.location = disabled' >> $TAHOELAFS_STORAGE_CONFIG fi + if grep -q 'tub.port' $TAHOELAFS_STORAGE_CONFIG; then + sed -i "s|tub.port.*|tub.port = disabled|g" $TAHOELAFS_STORAGE_CONFIG + else + echo 'tub.port = disabled' >> $TAHOELAFS_STORAGE_CONFIG + fi sed -i "s|web.port.*|web.port =|g" $TAHOELAFS_STORAGE_CONFIG su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs