2017-10-18 09:31:18 +00:00
|
|
|
#!/usr/bin/with-contenv sh
|
|
|
|
|
|
|
|
if [ ! -z ${STATIC_USER+x} ]; then
|
2017-10-18 13:01:06 +00:00
|
|
|
echo ${STATIC_PASSWORD} | ftpasswd \
|
2017-10-18 09:31:18 +00:00
|
|
|
--sha512 \
|
|
|
|
--passwd \
|
|
|
|
--home /var/lib/ftp/data \
|
|
|
|
--uid ${STATIC_UID} \
|
|
|
|
--gid ${STATIC_GID} \
|
|
|
|
--name ${STATIC_USER} \
|
|
|
|
--shell /bin/sh \
|
|
|
|
--file /etc/proftpd/passwd \
|
2017-10-18 13:01:06 +00:00
|
|
|
--stdin
|
2017-10-18 09:31:18 +00:00
|
|
|
fi
|