Hi,
I am relatively new to DSM and is in the process of setting up a test where I basically try out all of the stuff I want on my production box. I've hit a snag that I can't seem to figure out, so I hope someone can help with. I am running DSM 6.2.
I have setup domain and am using LetsEncrypt to ensure https traffic. This works well for access to the DSM etc. I have also set up a Minio docker and now I want to extend the use of the certificate to this. I have copied the certs manually to the docker config and it works as well. The snag is that the bash script I am trying to setup to make a weekly copy of the certificates from the LetsEncrypt source files to the Minio docker returns an error - whether I run it from an ssh session (as su) on the DSM or in task scheduler on DSM (as root). This is the script:
The result I get is this:
"XfnmO98" is the correct subdir to _archive, picked up from the cat DEFAULT command, btw.
I think it might be a permissions issue, but I can't figure out why - and what to change :-(
If anyone has insights, I would be very thankful.
TIA,
H.
I am relatively new to DSM and is in the process of setting up a test where I basically try out all of the stuff I want on my production box. I've hit a snag that I can't seem to figure out, so I hope someone can help with. I am running DSM 6.2.
I have setup domain and am using LetsEncrypt to ensure https traffic. This works well for access to the DSM etc. I have also set up a Minio docker and now I want to extend the use of the certificate to this. I have copied the certs manually to the docker config and it works as well. The snag is that the bash script I am trying to setup to make a weekly copy of the certificates from the LetsEncrypt source files to the Minio docker returns an error - whether I run it from an ssh session (as su) on the DSM or in task scheduler on DSM (as root). This is the script:
Code:
cp -f /usr/syno/etc/certificate/_archive/$(cat DEFAULT)/privkey.pem /volume1/docker/minio/config/certs/private.key && cp -f /usr/syno/etc/certificate/_archive/$(cat DEFAULT)/fullchain.pem /volume1/docker/minio/config/certs/public.crt
The result I get is this:
Code:
cp: cannot stat '/usr/syno/etc/certificate/XfnmO98/fullchain.pem': No such file or directory
"XfnmO98" is the correct subdir to _archive, picked up from the cat DEFAULT command, btw.
I think it might be a permissions issue, but I can't figure out why - and what to change :-(
If anyone has insights, I would be very thankful.
TIA,
H.