Explorar o código

oops, forgot to replace ip

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
5268ffb67c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      install/vst-install.sh

+ 1 - 1
install/vst-install.sh

@@ -577,7 +577,7 @@ wget vestacp.com/notify/?$REPO -O /dev/null
 vst_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
 vst_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
 if [ ! -z "$vst_ip" ] && [ "$vst_ip" != "$main_ip" ]; then
 if [ ! -z "$vst_ip" ] && [ "$vst_ip" != "$main_ip" ]; then
     # Assign passive ip address
     # Assign passive ip address
-    echo "pasv_address=54.246.111.50" >> /etc/vsftpd/vsftpd.conf
+    echo "pasv_address=$vst_ip" >> /etc/vsftpd/vsftpd.conf
 fi
 fi
 
 
 if [ -z "$vst_ip" ]; then
 if [ -z "$vst_ip" ]; then