|  | @@ -272,6 +272,9 @@ function install_interactive_tahoelafs {
 | 
	
		
			
			| 272 | 272 |  }
 | 
	
		
			
			| 273 | 273 |  
 | 
	
		
			
			| 274 | 274 |  function upgrade_tahoelafs {
 | 
	
		
			
			|  | 275 | +    if [ ! -d /home/tahoelafs/tahoelafs ]; then
 | 
	
		
			
			|  | 276 | +        return
 | 
	
		
			
			|  | 277 | +    fi
 | 
	
		
			
			| 275 | 278 |      systemctl stop tahoelafs
 | 
	
		
			
			| 276 | 279 |      function_check set_repo_commit
 | 
	
		
			
			| 277 | 280 |      set_repo_commit /home/tahoelafs/tahoelafs "tahoelafs commit" "$TAHOELAFS_COMMIT" $TAHOELAFS_REPO
 | 
	
	
		
			
			|  | @@ -388,6 +391,7 @@ function remove_tahoelafs {
 | 
	
		
			
			| 388 | 391 |      if [ -f /etc/nginx/.htpasswd-tahoelafs ]; then
 | 
	
		
			
			| 389 | 392 |          shred -zu /etc/nginx/.htpasswd-tahoelafs
 | 
	
		
			
			| 390 | 393 |      fi
 | 
	
		
			
			|  | 394 | +    remove_completion_param "tahoelafs commit"
 | 
	
		
			
			| 391 | 395 |      systemctl reload tor
 | 
	
		
			
			| 392 | 396 |  }
 | 
	
		
			
			| 393 | 397 |  
 |