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