Skip to content

Commit a07c7b3

Browse files
authored
Add public IP in ftp config
1 parent 3bb009f commit a07c7b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/v-update-sys-ip

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,17 @@ if [ ! -z "$vst_ip_list" ] && [ "$vst_ip_num" -eq '1' ]; then
6565
$BIN/v-rebuild-web-domains $user no
6666
done
6767
fi
68+
if [ ! -z "$FTP_SYSTEM" ];then
69+
ftpd_conf_file=$(find /etc/ -maxdepth 2 -name $FTP_SYSTEM.conf)
70+
sed -i "s/$old/$new/g" $ftpd_conf_file
71+
fi
6872

6973
# Restarting web server
7074
$BIN/v-restart-web
7175

76+
# Restarting ftp server
77+
$BIN/v-restart-ftp
78+
7279
# Restarting proxy server
7380
if [ ! -z "$PROXY_SYSTEM" ]; then
7481
$BIN/v-restart-proxy

0 commit comments

Comments
 (0)