Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker/add-user.sh: Don't crash on updating when there is a single user
When a single dovecot user exists and their password is being updated via docker/add-user.sh, the `grep -v` command intended to remove the user's old password will not match any lines and exit with error code 1, causing the entire script to fail. This patch fixes it by replacing the if-grep logic with a simpler sed invocation. #43 Amended-by: Alberto Bertogli <[email protected]> Minor edits to the commit message.
- Loading branch information