correctly set static password
This commit is contained in:
parent
044f869857
commit
f423a0c3b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user