aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ftpupload6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ftpupload b/src/ftpupload
index 7d46f46..05ae60e 100755
--- a/src/ftpupload
+++ b/src/ftpupload
@@ -10,7 +10,11 @@ SERVER=`/usr/bin/ftphelper --server`
REMOTEDIRECTORY=`/usr/bin/ftphelper --directory`
# local file to be uploaded
-FILE="/var/modbuslog/"`/usr/bin/ftphelper --mac`"_"`date +%Y_%m_%d --date='1 days ago'`"_00_00_00.log"
+FILE=`/usr/bin/ftphelper --mac`"_"`date +%Y_%m_%d --date='1 days ago'`"_00_00_00.log"
+
+# mput is dumb, and if we don't cd to the directory,
+# it will try to save file to /var/modbuslog/MAC.....log on ftp remote
+cd /var/modbuslog/
# login to remote server and upload
ftp -n -i $SERVER <<EOF
/+2326 2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24 2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666