prepare for k3s

This commit is contained in:
Sebastian Hugentobler 2021-09-28 15:55:15 +02:00
parent 970da1228c
commit 98dc1fb1a5
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
6 changed files with 19 additions and 16 deletions

View 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