user-access/rootfs/etc/cont-init.d/02-static-user

15 lines
351 B
Plaintext
Raw Normal View History

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 \
2020-08-24 07:55:47 +00:00
--uid "$STATIC_UID" \
--gid "$STATIC_GID" \
--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