user-access/rootfs/bin/static-user

15 lines
320 B
Bash
Executable File

#!/bin/sh
if [ ! -z ${STATIC_USER+x} ]; then
echo ${STATIC_PASSWORD} | ftpasswd \
--sha512 \
--passwd \
--home /var/lib/ftp/data \
--uid "2222" \
--gid "2222" \
--name "$STATIC_USER" \
--shell /bin/sh \
--file /etc/proftpd/passwd \
--stdin
fi