docker-ftp-server/docker-entrypoint.sh
2020-07-10 21:47:57 +01:00

20 lines
260 B
Bash
Executable file

#!/bin/sh
set -e
addgroup \
-S \
$FTP_USER
adduser \
-D \
-G $FTP_USER \
-h /home/$FTP_USER \
-s /bin/false \
$FTP_USER
mkdir -p /home/$FTP_USER
chown -R $FTP_USER:$FTP_USER /home/$FTP_USER
echo "$FTP_USER:$FTP_PASS" | /usr/sbin/chpasswd
exec "$@"