summaryrefslogtreecommitdiff
path: root/rhimport-fw
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-fw')
-rwxr-xr-xrhimport-fw11
1 files changed, 10 insertions, 1 deletions
diff --git a/rhimport-fw b/rhimport-fw
index 075b689..75fcd27 100755
--- a/rhimport-fw
+++ b/rhimport-fw
@@ -48,6 +48,10 @@ binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
+if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "!!!This is the last attempt, there won't be a retry on error!!!\n"
+}
+
my $user = `/usr/bin/id -un`;
$user =~ s/\n//;
my $group = "frontex";
@@ -118,7 +122,12 @@ for my $entry ($feed->entries) {
}
}
if($file eq "" || !(-e "$file")) {
- print "No Entry found for " . Date::Calc::Date_to_Text(@broadcastday) . " or download error - will retry later\n";
+ print "No Entry found for " . Date::Calc::Date_to_Text(@broadcastday) . " or download error - ";
+ if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "giving up, manual import necessary!!!\n";
+ } else {
+ print "will retry later\n";
+ }
exit 1;
}