Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 80da145

Browse files
julianvilasjustinwray
authored andcommitted
Ensure /root/tmp exists before writing there (#587)
Resolved a directory not found error during the let's encrypt process when using docker-compose.
1 parent 37c43e7 commit 80da145

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extra/lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ function letsencrypt_cert() {
128128
fi
129129

130130
if [[ "$__docker" = true ]]; then
131+
mkdir -p /root/tmp
131132
cat <<- EOF > /root/tmp/certbot.sh
132133
#!/bin/bash
133134
if [[ ! ( -d /etc/letsencrypt && "\$(ls -A /etc/letsencrypt)" ) ]]; then

0 commit comments

Comments
 (0)