mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
replaced static definition for mail server
This commit is contained in:
parent
b072479b53
commit
fbb54a87fe
5 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue