A very useful script thanks... I'm all working... However I did have to
fix a minor bug...
realIP & vsftpdIP are declared and never set again within the loop. The
result was that the script was correctly updating my settings first time
through but never again.I fixed this and tested by moving the
declaration to within the loop (but outside the if) and all seems ok now
while :
do
# Reset within loop as values may have changed since last kicked off - ML
realIP=`dig $DOMAIN +short`
vsftpdIP=`sed -n "/pasv_address=/s/pasv_address=//p" $CONFIG_FILE`
if [ $realIP != $vsftpdIP ]; then
........................
--
Wrong pasv_address behind the NAT in dynamic IP environment
https://bugs.launchpad.net/bugs/292384
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs