add static user possibility

This commit is contained in:
Sebastian Hugentobler 2017-10-18 11:31:18 +02:00
parent fe187a7160
commit 28930cd837
4 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,14 @@
#!/usr/bin/with-contenv sh
if [ ! -z ${STATIC_USER+x} ]; then
ftpasswd \
--sha512 \
--passwd \
--home /var/lib/ftp/data \
--uid ${STATIC_UID} \
--gid ${STATIC_GID} \
--name ${STATIC_USER} \
--shell /bin/sh \
--file /etc/proftpd/passwd \
--stdin ${STATIC_PASSWORD}
fi