Skip to content

Chown files after transfer #6

@riker09

Description

@riker09

I want to chown all transferred files once the transfer has completed. The eyefiserver is running as www-data (33) and I want to change the ownership to, say, 1000:1000. How would I do that?

My first approach was using the complete_execute config option:

complete_execute=/bin/chown 1000.1000

But this results in a python error with the subprocess:

OSError: [Errno 2] No such file or directory

I did some minor research, it seems that python is unable to call the system binary. But the reason remains a mystery to me.

PS: I'm trying to setup the eyefiserver within a docker container. I am using this base image. If I ever find a satisfactory way on how to do this I'll gladly provide a PR with the docker file and a detailed description. I'm having the image transfer working just fine, but changing the ownership after transfer would be very nice to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions