PlusMinus0 / headless-jd2-docker

Headless JDownloader 2 Docker Container
31 stars 38 forks source link

Permission denied on Synology #25

Closed kichetof closed 5 years ago

kichetof commented 5 years ago

Hi guys,

Unable to run after update (docker on Synology). At every launch, permissions are set to 1000 without considering env vars UID/GID.

Operator -n return : True if the length of string is nonzero. https://github.com/PlusMinus0/headless-jd2-docker/blob/e4cf08ec3c67333bf704683be44e13e4711bc200/common/entrypoint.sh#L4 https://github.com/PlusMinus0/headless-jd2-docker/blob/e4cf08ec3c67333bf704683be44e13e4711bc200/common/entrypoint.sh#L5

In my case, replace -n .. by ! -n .. works fine. I'm not 100% sure with this workaround, that's why I don't wrote a PR.

Thanks for your great container!! Cheers

PlusMinus0 commented 5 years ago

You are right. I used -z instead but that should fix it, added a test to confirm. Will merge as soon as travis is done.