correctly set static password

This commit is contained in:
Sebastian Hugentobler 2017-10-18 15:01:06 +02:00
parent 044f869857
commit f423a0c3b8

View File

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
if [ ! -z ${STATIC_USER+x} ]; then if [ ! -z ${STATIC_USER+x} ]; then
ftpasswd \ echo ${STATIC_PASSWORD} | ftpasswd \
--sha512 \ --sha512 \
--passwd \ --passwd \
--home /var/lib/ftp/data \ --home /var/lib/ftp/data \
@ -10,5 +10,5 @@ if [ ! -z ${STATIC_USER+x} ]; then
--name ${STATIC_USER} \ --name ${STATIC_USER} \
--shell /bin/sh \ --shell /bin/sh \
--file /etc/proftpd/passwd \ --file /etc/proftpd/passwd \
--stdin ${STATIC_PASSWORD} --stdin
fi fi