Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateSynoCertByDocker suggestions #1

Open
mag1024 opened this issue Jun 3, 2021 · 0 comments
Open

UpdateSynoCertByDocker suggestions #1

mag1024 opened this issue Jun 3, 2021 · 0 comments

Comments

@mag1024
Copy link

mag1024 commented Jun 3, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant