Jump to content

Disable `chown` on startup?


Recommended Posts

Posted

Hello,

 

Is there any way to disable the "chown" command that is run every.. single.. time... the docker container/server starts? I have emby running off a network volume that is mounted with the exact permissions emby expects so this is pointless and does nothing, but when the storage appliance is under load can take well over 10 min to finish due to my library size. It would be great to have an option to just skip this step that adds and does nothing for my configuration.

Thanks,

-kt

Posted

Emby doesn't chown on startup so this must be something the image you're using does. Are you using the official Emby image?

 

Posted

We do chown in the startup script, but only if the user or group of the /config volume differs from what you specified as UID and GID env variables.

if [ "$(ls -nd /config | tr -s '[:space:]' | cut -d' ' -f3)" -ne "$UID" ] || [ "$(ls -nd /config | tr -s '[:space:]' | cut -d' ' -f4)" -ne "$GID" ]; then
  chown "$UID":"$GID" -R /config
fi

Please verify your /config ownership really align.

  • Like 1
  • Thanks 1
Posted

Thank you! i will look into it

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...