15 lines
344 B
Plaintext
15 lines
344 B
Plaintext
|
#!/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
|