fix: check if subdir exists
when volume is mounted, /etc/letsencrypt exists even when not init-ed
This commit is contained in:
parent
6ec7228db4
commit
229a0bff28
1 changed files with 1 additions and 1 deletions
2
run.sh
2
run.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/ash
|
||||
|
||||
if [ ! -e /etc/letsencrypt ]
|
||||
if [ ! -e /etc/letsencrypt/live ]
|
||||
then
|
||||
echo "[!!] Certbot directory is not initialized"
|
||||
echo "[!!] Either it's the first run or you forgot to add a volume"
|
||||
|
|
Loading…
Add table
Reference in a new issue