diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index 80a049ad..fb95ce1f 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -368,7 +368,12 @@ function install_tahoelafs { echo $'Unable to create storage node' exit 782523 fi - sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG + if grep -q 'tub.location' $TAHOELAFS_STORAGE_CONFIG; then + sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG + else + echo 'tub.location = 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 create_tahoelafs_daemon "storage"