-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi, thank you for writing the reload script for updating Synology certs!
I found multiple threads on the internet confused about the correct places to copy the certs, and your script does the most comprehensive job by actually parsing the INFO file to determine the enabled services.
One thing I found odd about it, is that copyToDeafult (sic) copies new certs to the archive AND /usr/syno/etc/certificate/system/default/, which is then used as the source for the rsyncs. However, system/default is one of the services, so at some point it ends up doing rsync -avzh /usr/syno/etc/certificate/system/default/ /usr/syno/etc/certificate/system/default/
I modified my copyToDeafult to only copy to the archive (and renamed it to copyToArchive), and then use $archpath as the source for all the rsyncs.
As another minor improvement, the ID can be obtained from /usr/syno/etc/certificate/_archive/DEFAULT.
Thanks again for sharing your work :)