mirror of
				https://github.com/nextcloud/all-in-one.git
				synced 2025-11-01 03:31:36 +08:00 
			
		
		
		
	Merge pull request #2664 from nextcloud/enh/noid/speed-up-initial-login
try to speed up initial login by not removing the bridge network from…
This commit is contained in:
		
						commit
						b1eb97dc4b
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -57,6 +57,11 @@ while true; do | ||||||
|     # Remove dangling images |     # Remove dangling images | ||||||
|     sudo -u www-data docker image prune --force |     sudo -u www-data docker image prune --force | ||||||
| 
 | 
 | ||||||
|  |     # Remove mastercontainer from default bridge network | ||||||
|  |     if sudo -u www-data docker inspect nextcloud-aio-mastercontainer  --format "{{.NetworkSettings.Networks}}" | grep -q "bridge"; then | ||||||
|  |         sudo -u www-data docker network disconnect bridge nextcloud-aio-mastercontainer | ||||||
|  |     fi | ||||||
|  | 
 | ||||||
|     # Wait 60s so that the whole loop will not be executed again |     # Wait 60s so that the whole loop will not be executed again | ||||||
|     sleep 60 |     sleep 60 | ||||||
| done | done | ||||||
|  |  | ||||||
|  | @ -774,7 +774,8 @@ class DockerActionManager | ||||||
|     public function ConnectMasterContainerToNetwork() : void |     public function ConnectMasterContainerToNetwork() : void | ||||||
|     { |     { | ||||||
|         $this->ConnectContainerIdToNetwork('nextcloud-aio-mastercontainer', ''); |         $this->ConnectContainerIdToNetwork('nextcloud-aio-mastercontainer', ''); | ||||||
|         $this->DisconnectContainerFromBridgeNetwork('nextcloud-aio-mastercontainer'); |         // Don't disconnect here since it slows down the initial login by a lot. Is getting done during cron.sh instead.
 | ||||||
|  |         // $this->DisconnectContainerFromBridgeNetwork('nextcloud-aio-mastercontainer');
 | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public function ConnectContainerToNetwork(Container $container) : void |     public function ConnectContainerToNetwork(Container $container) : void | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue