linuxserver / docker-nzbget

GNU General Public License v3.0
150 stars 83 forks source link

Running scripts on a mounted volume #31

Closed ghost closed 7 years ago

ghost commented 7 years ago

Running on ubuntu 16.04. I'm trying to get nzbget setup to run post-processing scripts that I have on a mounted volume. I am migrating nzbget from a stand-alone installation. Whenever nzbget goes to post-process I get the following errors

handler: Fixing permissions for/downloads/scripts/handler.sh
handler: Could not start /downloads/scripts/handler.sh: Permission denied

I've made sure that the abc user has the same uid and gid as the host user for the mounted volume. I can't seem to run the script if it's on the volume, but if I connect to the nzbget instance, copy that same shell script to the root of the docker instance, then run it, it runs. It fails because I"m not running it from nzbget with the proper params but it attempts to run.

Is this an issue I can fix within nzbget or is this more a docker issue?

ghost commented 7 years ago

I took a look at /etc/mtab within the container. The volume was mounted with noexec. I moved the scrips to the config directory and all is well now.