Fix FTP_PASV_ADDRESS setting
This commit is contained in:
7
entry.sh
7
entry.sh
@@ -36,13 +36,6 @@ if [[ -n "${FTP_USERS_ROOT}" ]]; then
|
||||
sed -i 's/local_root=.*/local_root=\/srv\/$USER/' /etc/vsftpd*.conf
|
||||
fi
|
||||
|
||||
# Support setting the passive address
|
||||
if [[ -n "$FTP_PASV_ADDRESS" ]]; then
|
||||
for f in /etc/vsftpd*.conf; do
|
||||
echo "pasv_address=${FTP_PASV_ADDRESS}" >> "$f"
|
||||
done
|
||||
fi
|
||||
|
||||
# Manage /srv permissions
|
||||
if [[ -n "${FTP_CHOWN_ROOT}" ]]; then
|
||||
chown ftp:ftp /srv
|
||||
|
||||
@@ -35,5 +35,5 @@ connect_from_port_20=YES
|
||||
listen=YES
|
||||
tcp_wrappers=YES
|
||||
pasv_address=${FTP_PASV_ADDRESS}
|
||||
pasv_min_port=${FTP_PASV_MIN_PORT:-4559}
|
||||
pasv_max_port=${FTP_PASV_MAX_PORT:-4564}
|
||||
pasv_min_port=${FTP_PASV_MIN_PORT}
|
||||
pasv_max_port=${FTP_PASV_MAX_PORT}
|
||||
|
||||
@@ -35,8 +35,8 @@ connect_from_port_20=YES
|
||||
listen=YES
|
||||
tcp_wrappers=YES
|
||||
pasv_address=${FTP_PASV_ADDRESS}
|
||||
pasv_min_port=${FTP_PASV_MIN_PORT:-4559}
|
||||
pasv_max_port=${FTP_PASV_MAX_PORT:-4564}
|
||||
pasv_min_port=${FTP_PASV_MIN_PORT}
|
||||
pasv_max_port=${FTP_PASV_MAX_PORT}
|
||||
|
||||
# SSL
|
||||
ssl_enable=Yes
|
||||
|
||||
Reference in New Issue
Block a user