fix: check if subdir exists

when volume is mounted, /etc/letsencrypt exists even when not init-ed
This commit is contained in:
DarkCat09 2025-02-19 14:12:07 +04:00
parent 6ec7228db4
commit 229a0bff28
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

2
run.sh
View file

@ -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"