Skip to content

UpdateSynoCertByDocker suggestions #1

@mag1024

Description

@mag1024

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions