Add -p (passive mode) to FTP, otherwise it doesn't work on some sites.

(I hope it will not break other sites...)
This commit is contained in:
Sylvain Pion
2007-01-28 09:59:45 +00:00
parent d64dbdf644
commit 98fb3fc5bb
+1 -1
View File
@@ -115,7 +115,7 @@ put_on_web()
$CURL --upload-file ${1} --user anonymous:${MAIL_ADDRESS} \
ftp://${FTP_SERVER}/${FTP_STORE_DIR}/${2} >> ${ACTUAL_LOGFILE} 2>&1
else
$FTP -v -n $FTP_SERVER >> ${ACTUAL_LOGFILE} 2>&1 <<EOF
$FTP -p -v -n $FTP_SERVER >> ${ACTUAL_LOGFILE} 2>&1 <<EOF
quote USER anonymous
quote PASS ${MAIL_ADDRESS}
binary