|
Lines 66-71
ENDUSAGE
Link Here
|
| 66 |
|
66 |
|
| 67 |
die $usage if $help; |
67 |
die $usage if $help; |
| 68 |
|
68 |
|
|
|
69 |
my $script_handler = Koha::Script->new({ script => $0 }); |
| 70 |
|
| 71 |
try { |
| 72 |
$script_handler->lock_exec; |
| 73 |
} |
| 74 |
catch { |
| 75 |
my $message = "Skipping execution of $0 ($_)"; |
| 76 |
print STDERR "$message\n" |
| 77 |
if $verbose; |
| 78 |
cronlogaction( $message ); |
| 79 |
exit; |
| 80 |
}; |
| 81 |
|
| 69 |
cronlogaction(); |
82 |
cronlogaction(); |
| 70 |
|
83 |
|
| 71 |
if ( C4::Context->config("enable_plugins") ) { |
84 |
if ( C4::Context->config("enable_plugins") ) { |
| 72 |
- |
|
|