You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
305 B
14 lines
305 B
2 years ago
|
#!/bin/sh
|
||
|
|
||
|
if [ ! -f vsftpd.conf.bak ]; then
|
||
|
mv vsftpd.conf vsftpd.conf.bak
|
||
|
mv /tmp/vsftpd.conf .
|
||
|
adduser -D $FTP_USR
|
||
|
echo "$FTP_USR:$FTP_PWD" | chpasswd &> /dev/null
|
||
|
echo "$FTP_USR" >> /etc/vsftpd.userlist
|
||
|
chown -R $FTP_USR:$FTP_USR /var/www
|
||
|
fi
|
||
|
|
||
|
echo "FTP server started."
|
||
|
vsftpd vsftpd.conf
|