We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2200c95 + 3651b94 commit 89d6773Copy full SHA for 89d6773
backend/setup.js
@@ -187,11 +187,17 @@ const setupCertbotPlugins = () => {
187
}
188
});
189
190
- const install_cmd = 'pip3 install ' + plugins.join(' ');
191
- promises.push(utils.exec(install_cmd));
192
- return Promise.all(promises).then(() => {
193
- logger.info('Added Certbot plugins ' + plugins.join(', '));
194
- });
+ if (plugins.length) {
+ const install_cmd = 'pip3 install ' + plugins.join(' ');
+ promises.push(utils.exec(install_cmd));
+ }
+
195
+ if (promises.length) {
196
+ return Promise.all(promises)
197
+ .then(() => {
198
+ logger.info('Added Certbot plugins ' + plugins.join(', '));
199
+ });
200
201
202
203
};
0 commit comments