vsftpd/entrypoint.sh

11 lines
216 B
Bash
Executable File

#!/bin/bash
set -e;
echo $FTP_USER:$FTP_PASS
if [ -z `getent passwd $FTP_USER` ]; then useradd $FTP_USER -d /home/ftp; fi
echo "$FTP_USER:$FTP_PASS" | chpasswd
echo $FTP_USER | tee -a /etc/vsftpd.userlist
exec $@