prepare for k3s
This commit is contained in:
parent
970da1228c
commit
98dc1fb1a5
6 changed files with 19 additions and 16 deletions
14
rootfs/etc/cont-init.d/02-static-user
Normal file
14
rootfs/etc/cont-init.d/02-static-user
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ ! -z ${STATIC_USER+x} ]; then
|
||||
echo ${STATIC_PASSWORD} | ftpasswd \
|
||||
--sha512 \
|
||||
--passwd \
|
||||
--home /var/lib/ftp/data \
|
||||
--uid "$STATIC_UID" \
|
||||
--gid "$STATIC_GID" \
|
||||
--name "$STATIC_USER" \
|
||||
--shell /bin/sh \
|
||||
--file /etc/proftpd/passwd \
|
||||
--stdin
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue