You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. ftppush script stuck on grepping FTP_DIR_HOUR, but folder persist and files not sending to ftp after wifi reconnection or after reboot. https://imgur.com/3p0ZHwX
The text was updated successfully, but these errors were encountered:
if [ "${FTP_DIR_TREE}" == "yes" ]; then
if [ ! -z "${FTP_DIR_HOUR}" ]; then
# Create hour directory on FTP server
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}/${FTP_DIR_HOUR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR_HOUR}"
FTP_DIR_HOUR="${FTP_DIR_HOUR}/"
fi
fi
to:
if [ "${FTP_DIR_TREE}" == "yes" ]; then
if [ ! -z "${FTP_DIR_HOUR}" ]; then
# Create hour directory on FTP server
curl ftp://${FTP_USERNAME}:${FTP_PASSWORD}@${FTP_HOST}/${FTP_DIR}/${FTP_DIR_HOUR}/ --ftp-create-dirs >/dev/null 2>&1
fi
fi
curl can be found here, cacert.pem can be found here, if u want to use curl to iteraction with your telegram bot.
Hi. ftppush script stuck on grepping FTP_DIR_HOUR, but folder persist and files not sending to ftp after wifi reconnection or after reboot.
https://imgur.com/3p0ZHwX
The text was updated successfully, but these errors were encountered: