Skip to content

Commit

Permalink
synology: Create cert directory if it doesn't exist
Browse files Browse the repository at this point in the history
When upgrading from Resilio Sync 2.7.3 to 2.8.0, the `cert/` directory
was removed. This commit adds a command to create the directory tree up
to `cert/` if it doesn't exist.
  • Loading branch information
Injabie3 committed May 9, 2024
1 parent 18181f5 commit 379fafe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synology/acme.sh-rslsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export rslsyncCertDir=/volume1/@appstore/resiliosync/var/cert

# Here's the actual script
${acmeShRoot}/acme.sh --renew -d "${fqdnForNas}" --home ${acmeShRoot}
mkdir -p ${rslsyncCertDir}
chown rslsync:resiliosync ${rslsyncCertDir}
cp ${synologyCertDir}/cert.pem ${rslsyncCertDir}/cert.pem
cp ${synologyCertDir}/privkey.pem ${rslsyncCertDir}/privkey.pem
chown rslsync:resiliosync ${rslsyncCertDir}/cert.pem
Expand Down

0 comments on commit 379fafe

Please sign in to comment.