Mercurial Hosting > luan
changeset 2082:cdc9a31c6f71 ssltesting tip
update renewSsl.sh to reflect changes in directory structure
| author | Violet7 |
|---|---|
| date | Tue, 09 Dec 2025 17:53:16 -0800 |
| parents | 7980c6707150 |
| children | |
| files | host/renewSsl.sh |
| diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
diff -r 7980c6707150 -r cdc9a31c6f71 host/renewSsl.sh --- a/host/renewSsl.sh Tue Dec 09 17:41:26 2025 -0800 +++ b/host/renewSsl.sh Tue Dec 09 17:53:16 2025 -0800 @@ -23,10 +23,11 @@ [ -d "$SITEROOT" ] || continue DOMAIN=$(basename "$SITEROOT") - CSRFILE="$SITEROOT/$DOMAIN.csr" - FULLCHAIN="$SITEROOT/fullchain.cer" - CHALLENGEDIR="$SITEROOT/site/.well-known/acme-challenge" - TMPOUT="/tmp/$DOMAIN.crt" + SSLDIR="$SITEROOT/ssl" + CSRFILE="$SSLDIR/$DOMAIN.csr" + FULLCHAIN="$SSLDIR/fullchain.cer" + CHALLENGEDIR="$SITEROOT/.well-known/acme-challenge" + TMPOUT="$SSLDIR/$DOMAIN.crt.tmp" echo "Processing domain: $DOMAIN" # local_https.sh does not create a csr file, assume @@ -44,9 +45,8 @@ --acme-dir "$CHALLENGEDIR" \ >"$TMPOUT" - wc -c <$TMPOUT - # If TMPOUT is empty, something failed. + # Do not modify the current fullchain. if [ ! -s "$TMPOUT" ]; then echo "Error: $TMPOUT is empty - please see previous output for details.\nContinuing to next domain..." rm -f "$TMPOUT"
