From 0f8a738c7e3c2ddb6b5764e245dab49cc4d8df32 Mon Sep 17 00:00:00 2001 From: Scruel Tao Date: Thu, 22 Feb 2024 19:23:00 +0800 Subject: [PATCH] Updated Synology NAS Guide (markdown) --- Synology-NAS-Guide.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Synology-NAS-Guide.md b/Synology-NAS-Guide.md index 3f9c241..59bb414 100644 --- a/Synology-NAS-Guide.md +++ b/Synology-NAS-Guide.md @@ -99,9 +99,9 @@ By specifying a different `SYNO_Certificate` (and set `SYNO_Create=1` for creati ```sh # SYNO_Certificate is the description shown under Security -> Certificates in the DSM Control Panel -$ export SYNO_Certificate="A different certificate description" -$ export SYNO_Create=1 # Says to create the certificate if it doesn't exist -$ ./acme.sh --deploy --home . -d "subdomain.$CERT_DOMAIN" --deploy-hook synology_dsm +export SYNO_Certificate="A different certificate description" +export SYNO_Create=1 # Says to create the certificate if it doesn't exist +./acme.sh --deploy --home . -d "subdomain.$CERT_DOMAIN" --deploy-hook synology_dsm ``` ## Configuring Certificate Renewal @@ -115,14 +115,13 @@ In DSM control panel, open the 'Task Scheduler' and create a new scheduled task ```sh # renew certificates -/usr/local/share/acme.sh/acme.sh --cron --home /usr/local/share/acme.sh/ +./acme.sh --cron --home /usr/local/share/acme.sh/ ``` ## Fix a broken environment after Synology DSM upgrade ```sh -$ cd /usr/local/share/acme.sh -$ ./acme.sh --force --upgrade --nocron --home /usr/local/share/acme.sh +./acme.sh --force --upgrade --nocron --home /usr/local/share/acme.sh ``` or manually add below line into /root/.profile