|  | @@ -368,7 +368,12 @@ function install_tahoelafs {
 | 
	
		
			
			| 368 | 368 |          echo $'Unable to create storage node'
 | 
	
		
			
			| 369 | 369 |          exit 782523
 | 
	
		
			
			| 370 | 370 |      fi
 | 
	
		
			
			| 371 |  | -    sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG
 | 
	
		
			
			|  | 371 | +    if grep -q 'tub.location' $TAHOELAFS_STORAGE_CONFIG; then
 | 
	
		
			
			|  | 372 | +        sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG
 | 
	
		
			
			|  | 373 | +    else
 | 
	
		
			
			|  | 374 | +        echo 'tub.location = disabled' >> $TAHOELAFS_STORAGE_CONFIG
 | 
	
		
			
			|  | 375 | +    fi
 | 
	
		
			
			|  | 376 | +    sed -i "s|web.port.*|web.port =|g" $TAHOELAFS_STORAGE_CONFIG
 | 
	
		
			
			| 372 | 377 |  
 | 
	
		
			
			| 373 | 378 |      su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
 | 
	
		
			
			| 374 | 379 |      create_tahoelafs_daemon "storage"
 |