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 \
|
2021-09-28 15:25:15 +00:00
|
|
|
#--uid "$STATIC_UID" \
|
|
|
|
#--gid "$STATIC_GID" \
|
2020-08-24 07:55:47 +00:00
|
|
|
--name "$STATIC_USER" \
|
2017-10-18 09:31:18 +00:00
|
|
|
--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
|