This commit is contained in:
2021-09-09 10:03:51 +02:00

View File

@@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
cd /domains
email=$EMAIL email=$EMAIL
start_letsencrypt() { start_letsencrypt() {
@@ -16,7 +14,7 @@ start_letsencrypt() {
} }
LETSENCRYPT_FILE=$(find . -type f -name letsencrypt); LETSENCRYPT_FILE=$(find /acme.sh/ -type f -name letsencrypt);
if [ -n "$LETSENCRYPT_FILE" ] ; then if [ -n "$LETSENCRYPT_FILE" ] ; then
DOMAIN=$(jq -r .DOMAIN $LETSENCRYPT_FILE) ; DOMAIN=$(jq -r .DOMAIN $LETSENCRYPT_FILE) ;
start_letsencrypt; start_letsencrypt;