mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Merge pull request #1158 from jc21/fixes-duckdns-certbot
This commit is contained in:
commit
1c93ca9896
@ -808,7 +808,7 @@ const internalCertificate = {
|
|||||||
const prepare_cmd = 'pip install ' + dns_plugin.package_name + '==' + dns_plugin.package_version + ' ' + dns_plugin.dependencies;
|
const prepare_cmd = 'pip install ' + dns_plugin.package_name + '==' + dns_plugin.package_version + ' ' + dns_plugin.dependencies;
|
||||||
|
|
||||||
// Whether the plugin has a --<name>-credentials argument
|
// Whether the plugin has a --<name>-credentials argument
|
||||||
const has_config_arg = certificate.meta.dns_provider !== 'route53' && certificate.meta.dns_provider !== 'duckdns';
|
const has_config_arg = certificate.meta.dns_provider !== 'route53';
|
||||||
|
|
||||||
let main_cmd =
|
let main_cmd =
|
||||||
certbot_command + ' certonly --non-interactive ' +
|
certbot_command + ' certonly --non-interactive ' +
|
||||||
@ -834,10 +834,6 @@ const internalCertificate = {
|
|||||||
main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
|
main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (certificate.meta.dns_provider === 'duckdns') {
|
|
||||||
main_cmd = main_cmd + ' --' + dns_plugin.full_plugin_name + '-token ' + certificate.meta.dns_provider_credentials;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (debug_mode) {
|
if (debug_mode) {
|
||||||
logger.info('Command:', `${credentials_cmd} && ${prepare_cmd} && ${main_cmd}`);
|
logger.info('Command:', `${credentials_cmd} && ${prepare_cmd} && ${main_cmd}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user