From f423a0c3b85b3f4c6e7448c4bbb82956f969713c Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 18 Oct 2017 15:01:06 +0200 Subject: [PATCH] correctly set static password --- rootfs/etc/cont-init.d/04-static-user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/cont-init.d/04-static-user b/rootfs/etc/cont-init.d/04-static-user index 3a92097..3c73215 100644 --- a/rootfs/etc/cont-init.d/04-static-user +++ b/rootfs/etc/cont-init.d/04-static-user @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv sh if [ ! -z ${STATIC_USER+x} ]; then - ftpasswd \ + echo ${STATIC_PASSWORD} | ftpasswd \ --sha512 \ --passwd \ --home /var/lib/ftp/data \ @@ -10,5 +10,5 @@ if [ ! -z ${STATIC_USER+x} ]; then --name ${STATIC_USER} \ --shell /bin/sh \ --file /etc/proftpd/passwd \ - --stdin ${STATIC_PASSWORD} + --stdin fi