sftp icon indicating copy to clipboard operation
sftp copied to clipboard

Commad args for the user scripts

Open Duiesel opened this issue 7 years ago • 2 comments

Hi.

I was checked the /entrypoint code and found that custom user scripts can't use command args because they haven't been passed

For e.g. I can't get user name or directory from the custom script.

Thanks.

Duiesel avatar Jun 10 '18 12:06 Duiesel

Hello! Any solution for this problem?

mizzimizzi avatar Jan 22 '21 17:01 mizzimizzi

It is possible to solve the problem by writing something like this in your Dockerfile: FROM atmoz/sftp:alpine ... ENTRYPOINT ["/entrypoint", "/path/to/custom/script.sh"]

mizzimizzi avatar Jan 25 '21 08:01 mizzimizzi