use new s6-rc layout

This commit is contained in:
Sebastian Hugentobler 2022-02-15 16:21:13 +01:00
parent 5cef43fdaa
commit fc8c0a489f
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
11 changed files with 25 additions and 14 deletions

14
rootfs/bin/static-user Executable file
View file

@ -0,0 +1,14 @@
#!/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