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