Fixed bind: Address already in use problem when use ftp command

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-11-23 19:12:56 +09:00
parent e2a40043df
commit 112ad3baf2
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -241,7 +241,7 @@ ftp_upload() {
local FTP_OUT_FILE=$(basename ${OUT_FILE})
log "Tranferring backup file to FTP server"
ftp -in ${FTP_HOST} 2>&1 >> ${LOGFILE} <<EOF
ftp -inp ${FTP_HOST} 2>&1 >> ${LOGFILE} <<EOF
user $FTP_USER $FTP_PASS
binary
lcd $LOCALDIR