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

15 lines
353 B
Text
Raw Normal View History

2017-10-18 11:31:18 +02:00
#!/usr/bin/with-contenv sh
if [ ! -z ${STATIC_USER+x} ]; then
2017-10-18 15:01:06 +02:00
echo ${STATIC_PASSWORD} | ftpasswd \
2017-10-18 11:31:18 +02:00
--sha512 \
--passwd \
--home /var/lib/ftp/data \
2021-09-28 17:25:15 +02:00
#--uid "$STATIC_UID" \
#--gid "$STATIC_GID" \
2020-08-24 09:55:47 +02:00
--name "$STATIC_USER" \
2017-10-18 11:31:18 +02:00
--shell /bin/sh \
--file /etc/proftpd/passwd \
2017-10-18 15:01:06 +02:00
--stdin
2017-10-18 11:31:18 +02:00
fi