aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-13 00:59:48 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-13 00:59:48 +0000
commitef40490b47e4ffa64ffae41b43ee5096d1460ece (patch)
tree0ccb3853d28be9e96ea8b2207de489cdcff51f06
parent267d9a07255d96a564da64ce5c819ebc4701d5f1 (diff)
downloadverteco-ef40490b47e4ffa64ffae41b43ee5096d1460ece.tar.gz
ftpupload: use fully qualified paths
cron requires them
Diffstat (limited to '')
-rwxr-xr-xsrc/ftpupload13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ftpupload b/src/ftpupload
index 09dfe4d..01cbdb2 100755
--- a/src/ftpupload
+++ b/src/ftpupload
@@ -20,15 +20,18 @@ FIVEDAYLOG=`/usr/bin/ftphelper --mac`"_"`date +%Y_%m_%d --date='4 days ago'`"_00
SIXDAYLOG=`/usr/bin/ftphelper --mac`"_"`date +%Y_%m_%d --date='5 days ago'`"_00_00_00.log"
SEVENDAYLOG=`/usr/bin/ftphelper --mac`"_"`date +%Y_%m_%d --date='6 days ago'`"_00_00_00.log"
+# enter modbuslog directory
+cd /var/modbuslog/
+
# move file to archive
-mv $CURRENTLOG /var/modbuslog/archive/
+/bin/mv $CURRENTLOG /var/modbuslog/archive/
# 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/archive/
# login to remote server and upload
-ftp -n -v -i $SERVER <<EOF
+/usr/bin/ftp -n -v -i $SERVER <<EOF
user $USERNAME $PASSWORD
cd $REMOTEDIRECTORY
mput $CURRENTLOG
@@ -41,6 +44,10 @@ mput $SEVENDAYLOG
bye
EOF
+EXITSTATUS=$?
+
# remove files after 3 months
CLEANUP="/var/modbus/archive/"`/usr/bin/ftphelper --mac`"_"`date +%Y_%m --date='4 months ago'`"*.log"
-rm $CLEANUP
+/bin/rm $CLEANUP
+
+exit $EXITSTATUS
+0200'>2018-05-10Remove Atlantic Bird 1Olliver Schinagl1-270/+0 Atlantic Bird 1 was renamed to Eutelsat 12 West A in 2012 and moved from 12 to 36 degree's in 2016 and was thus not accurate anymore. In 2018 it was repositioned to 59 east and renamed to Eutelsat 59A as can be seen at [0]. So far there are no active transponders. [0] http://space.skyrocket.de/doc_sdat/atlantic-bird-1.htm Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> 2018-05-10dtv-scan-tables - dvb-s - update and rename the config file for ↵leny@netcourrier.com1-53/+663 Atlantic-Bird-3-5.0W - Ku Band Hello, The latest update for the file Atlantic-Bird-3-5.0W (Ku Band) is 2015-03-28: https://git.linuxtv.org/dtv-scan-tables.git/log/dvb-s/Atlantic-Bird-3-5.0W but since March 2015 there are a lot of changes in the tranponders list. And now, a lot of transponders for Algerian, French and Italian TV and Radio channels are missing. Attached is an updated config scan file (Atlantic-Bird-3-5.0W.patch file) for Atlantic-Bird-3-5.0W transponders in dvbv5 format. Could you please ensure that this new patch is committed into the DVB source code tree repositery? PS : Attached there is also the full up to date file : Atlantic-Bird-3-5.0W-2017-01-09.NEW.FULL if you need it Thank you Best regards 2018-05-10Add another initial transponder for Ziggo/Netherlands.Jens Peters1-0/+8 Ziggo and UPC had merged, but the initial UPC transponder is still the correct one for former UPC customers. See also https://gathering.tweakers.net/forum/list_message/31632914#31632914