vsftpd/entrypoint.sh

11 lines
216 B
Bash
Raw Normal View History

2022-02-26 18:32:23 +01:00
#!/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 $@