From 033cf896bb812a4c11526ba38c57878546d894ef Mon Sep 17 00:00:00 2001 From: skyslasher <31884396+skyslasher@users.noreply.github.com> Date: Tue, 19 Sep 2017 15:47:13 +0200 Subject: [PATCH] Extended the copy script for the renewed certificate to the smbftp service, Reverse Proxy and App-Portal --- Synology-NAS-Guide.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Synology-NAS-Guide.md b/Synology-NAS-Guide.md index 2866679..833f544 100644 --- a/Synology-NAS-Guide.md +++ b/Synology-NAS-Guide.md @@ -77,7 +77,19 @@ In DSM control panel, open the 'Task Scheduler' and create a new scheduled task ``` # Note: The $CERT_FOLDER must be hardcoded here since the running environment is unknown. Don't blindly copy&paste +# system default rsync -avzh "$CERT_FOLDER" "/usr/syno/etc/certificate/system/default/" +# smbftp +rsync -avzh "$CERT_FOLDER" "/usr/syno/etc/certificate/smbftpd/ftpd" +# app portal +while read -r dir ; do + rsync -avzh "$CERT_FOLDER" "$dir" +done < <(find /usr/syno/etc/certificate/ReverseProxy -maxdepth 1 -mindepth 1 -type d) +# reverse proxy +while read -r dir ; do + rsync -avzh "$CERT_FOLDER" "$dir" +done < <(find /usr/syno/etc/certificate/AppPortal -maxdepth 1 -mindepth 1 -type d) +# reload certificate /usr/syno/sbin/synoservicectl --reload nginx ``` Now you should be all good.