mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
When running standalone client with docker, do not check container cert output dir for permissions
This commit is contained in:
committed by
Ubuntu
parent
028179de25
commit
95090974e9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user