File tree 5 files changed +6
-4
lines changed
5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -790,7 +790,7 @@ const internalCertificate = {
790
790
791
791
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate . id ;
792
792
const credentials_cmd = 'echo \'' + certificate . meta . dns_provider_credentials . replace ( '\'' , '\\\'' ) + '\' > \'' + credentials_loc + '\' && chmod 600 \'' + credentials_loc + '\'' ;
793
- const prepare_cmd = 'pip3 install ' + dns_plugin . package_name + '==' + dns_plugin . package_version ;
793
+ const prepare_cmd = 'pip3 install ' + dns_plugin . package_name + '==' + dns_plugin . package_version + ' ' + dns_plugin . dependencies ;
794
794
795
795
// Whether the plugin has a --<name>-credentials argument
796
796
const has_config_arg = certificate . meta . dns_provider !== 'route53' ;
Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ const setupCertbotPlugins = () => {
176
176
certificates . map ( function ( certificate ) {
177
177
if ( certificate . meta && certificate . meta . dns_challenge === true ) {
178
178
const dns_plugin = dns_plugins [ certificate . meta . dns_provider ] ;
179
- const package_to_install = `${ dns_plugin . package_name } ==${ dns_plugin . package_version } ` ;
179
+ const packages_to_install = `${ dns_plugin . package_name } ==${ dns_plugin . package_version } ${ dns_plugin . dependencies } ` ;
180
180
181
- if ( plugins . indexOf ( package_to_install ) === - 1 ) plugins . push ( package_to_install ) ;
181
+ if ( plugins . indexOf ( packages_to_install ) === - 1 ) plugins . push ( packages_to_install ) ;
182
182
183
183
// Make sure credentials file exists
184
184
const credentials_loc = '/etc/letsencrypt/credentials/credentials-' + certificate . id ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ COPY global /app/global
38
38
39
39
WORKDIR /app
40
40
RUN yarn install
41
+ RUN mkdir -p /etc/letsencrypt/credentials
41
42
42
43
# Remove frontend service not required for prod, dev nginx config as well
43
44
RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ RUN cd /usr \
18
18
19
19
COPY rootfs /
20
20
RUN rm -f /etc/nginx/conf.d/production.conf
21
+ RUN mkdir -p /etc/letsencrypt/credentials
21
22
22
23
# s6 overlay
23
24
RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
display_name : 'Cloudflare' ,
25
25
package_name : 'certbot-dns-cloudflare' ,
26
26
package_version : '1.8.0' ,
27
- dependencies : '' ,
27
+ dependencies : 'cloudflare ' ,
28
28
credentials : `# Cloudflare API token
29
29
dns_cloudflare_api_token = 0123456789abcdef0123456789abcdef01234567` ,
30
30
full_plugin_name : 'dns-cloudflare' ,
You can’t perform that action at this time.
0 commit comments