first start without /tmp/pxelator.once doesn't die
[pxelator] / lib / PXElator / upstream.pm
index e1f4ecb..56d14e5 100644 (file)
@@ -19,7 +19,7 @@ sub mirror_file {
 }
 
 my $once_path = '/tmp/pxelator.once';
-our $just_once = retrieve $once_path;
+our $just_once = retrieve $once_path if -e $once_path;
 sub first_time {
        my $what = shift;
        return if $just_once->{$what}++;