Open gregory112 opened 4 years ago
+1 for this PR
Thanks for the PR, @gregory112 !
We can try to find a way for appending virtual users, but the proposed grep
approach wont work, as it will behave in an unexpected way if it matches a password.
fix this issue here: https://github.com/yale8848/docker-vsftpd
Check the virtual_users.txt file for FTP_USER entry first, to see if the entry already exists. If the user already exists, it won't be appended to the file. Using ">>" instead of ">" stream which will overwrite the file.