Skip to content

Commit 89d6773

Browse files
committed
Merge branch 'develop' of github.com:jc21/nginx-proxy-manager into real_ip
2 parents 2200c95 + 3651b94 commit 89d6773

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

backend/setup.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,17 @@ const setupCertbotPlugins = () => {
187187
}
188188
});
189189

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-
});
190+
if (plugins.length) {
191+
const install_cmd = 'pip3 install ' + plugins.join(' ');
192+
promises.push(utils.exec(install_cmd));
193+
}
194+
195+
if (promises.length) {
196+
return Promise.all(promises)
197+
.then(() => {
198+
logger.info('Added Certbot plugins ' + plugins.join(', '));
199+
});
200+
}
195201
}
196202
});
197203
};

0 commit comments

Comments
 (0)