sftp
sftp copied to clipboard
Hot update
Closes #133. This PR aims to deliver hot-update for the SFTP user config. The target is to handle new users and password changes. Other modifications (such as uid change or user deletion) in the user config is out of scope now. Users.conf is watched for changes with inotifywait. This may happen in another container, which also accessing the same config as a mount. Jobs done:
- [x] Supervisor integrated.
- [x] Entrypoint is a standalone, watcher daemon, triggers the original function when users.conf changes. Managed by supervisord.
- [x] Sshd also became a standalone daemon, managed with supervisord.
- [x] Cleaning up, renaming, refactoring.
Looking good, I will have a closer look at it soon! I may have to improve tests as well.
Thanks! I did not find out so far why the tests are failing on this branch. I tried it on Arch.
@libesz @atmoz Any plans on adding this? Currently trying to find a way to add users on runtime.
Edit: Switched over to drakkan/sftpgo.
@synchronizing Wow what an old PR 😄. I am currently not using this project, and neither my improved fork. @atmoz might comment on the future of this PR.
Roger that. No stress at all, got it all figured out with another project. :)