mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 09:25:15 +00:00 
			
		
		
		
	Fix for pip install error when there are no plugins to install
This commit is contained in:
		@@ -187,11 +187,17 @@ const setupCertbotPlugins = () => {
 | 
			
		||||
					}
 | 
			
		||||
				});
 | 
			
		||||
 | 
			
		||||
				const install_cmd = 'pip3 install ' + plugins.join(' ');
 | 
			
		||||
				promises.push(utils.exec(install_cmd));
 | 
			
		||||
				return Promise.all(promises).then(() => { 
 | 
			
		||||
					logger.info('Added Certbot plugins ' + plugins.join(', ')); 
 | 
			
		||||
				});
 | 
			
		||||
				if (plugins.length) {
 | 
			
		||||
					const install_cmd = 'pip3 install ' + plugins.join(' ');
 | 
			
		||||
					promises.push(utils.exec(install_cmd));
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				if (promises.length) {
 | 
			
		||||
					return Promise.all(promises)
 | 
			
		||||
						.then(() => { 
 | 
			
		||||
							logger.info('Added Certbot plugins ' + plugins.join(', ')); 
 | 
			
		||||
						});
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user