user-access/rootfs/bin/static-user

15 lines
320 B
Text
Raw Permalink Normal View History

2022-02-15 16:21:13 +01:00
#!/bin/sh
2017-10-18 11:31:18 +02:00
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:29:57 +02:00
--uid "2222" \
--gid "2222" \
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