mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 10:58:22 +08:00
13 lines
501 B
Bash
13 lines
501 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f /etc/pure-ftpd/pureftpd.pdb ]; then
|
|
user='ftp'
|
|
pwd='ftp'
|
|
mkdir -p $FTP_USER_HOME/$user
|
|
chown 1000:1000 $FTP_USER_HOME/$user
|
|
(echo $pwd; echo $pwd) | pure-pw useradd $user -u ftpuser -d $FTP_USER_HOME/$user
|
|
pure-pw mkdb
|
|
fi
|
|
|
|
bash -c '/usr/sbin/pure-ftpd --passiveportrange 30000:30009 --maxclientsnumber 30 --maxclientsperip 5 --clientcharset utf8 --login puredb:/etc/pure-ftpd/pureftpd.pdb --prohibitdotfileswrite --noanonymous --createhomedir --nochmod'
|