replaced static definition for mail server

This commit is contained in:
Serghey Rodin 2013-06-24 16:58:45 +03:00
commit fbb54a87fe
5 changed files with 4 additions and 8 deletions

View file

@ -742,10 +742,6 @@ vst_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
if [ ! -z "$vst_ip" ] && [ "$vst_ip" != "$main_ip" ]; then
# Set NAT association
$VESTA/bin/v-change-sys-ip-nat $main_ip $vst_ip
# Assign passive ip address
echo "pasv_address=$vst_ip" >> /etc/vsftpd/vsftpd.conf
service vsftpd restart
fi
if [ -z "$vst_ip" ]; then
vst_ip=$main_ip