mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
When running standalone client with docker, do not check container cert output dir for permissions
This commit is contained in:
parent
028179de25
commit
95090974e9
2 changed files with 3 additions and 1 deletions
|
|
@ -12,4 +12,5 @@ RUN \
|
|||
virtualenv --no-site-packages -p python2 venv && \
|
||||
./venv/bin/python setup.py install
|
||||
|
||||
ENV DOCKER_RUN True
|
||||
ENTRYPOINT [ "./venv/bin/letsencrypt", "--text" ]
|
||||
|
|
|
|||
|
|
@ -336,7 +336,8 @@ def init_csr(privkey, names, cert_dir):
|
|||
csr_pem, csr_der = crypto_util.make_csr(privkey.pem, names)
|
||||
|
||||
# Save CSR
|
||||
le_util.make_or_verify_dir(cert_dir, 0o755)
|
||||
if not os.environ.get('DOCKER_RUN'):
|
||||
le_util.make_or_verify_dir(cert_dir, 0o755)
|
||||
csr_f, csr_filename = le_util.unique_file(
|
||||
os.path.join(cert_dir, "csr-letsencrypt.pem"), 0o644)
|
||||
csr_f.write(csr_pem)
|
||||
|
|
|
|||
Loading…
Reference in a new issue