From 41fa3d7f0710f65f28499ea2df82d7d5e1db6d40 Mon Sep 17 00:00:00 2001 From: Bruno Bronosky Date: Fri, 14 Jul 2017 01:36:37 -0400 Subject: [PATCH] Fix https://github.com/panubo/docker-vsftpd/issues/2 The combination of IFS and an unquoted Here String was causing `read` to put both values into the first variable (name). --- entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.sh b/entry.sh index 9459881..60e6c62 100755 --- a/entry.sh +++ b/entry.sh @@ -15,7 +15,7 @@ fi # Support multiple users while read user; do - IFS=: read name pass <<< ${!user} + IFS=: read name pass <<< "${!user}" echo "Adding user $name" /add-virtual-user.sh "$name" "$pass" done < <(env | grep "FTP_USER_" | sed 's/^\(FTP_USER_[a-zA-Z0-9]*\)=.*/\1/')