Merge branch 'tesla' of https://stash.teslamotors.com/scm/~iconnor/zoneminder into tesla
This commit is contained in:
commit
f132a7681d
|
@ -180,6 +180,9 @@ MAIN: while( $loop ) {
|
||||||
Info("Auditing Storage Area $Storage_Areas[0]{Id} $Storage_Areas[0]{Name} at $Storage_Areas[0]{Path}");
|
Info("Auditing Storage Area $Storage_Areas[0]{Id} $Storage_Areas[0]{Name} at $Storage_Areas[0]{Path}");
|
||||||
} elsif ( $Config{ZM_SERVER_ID} ) {
|
} elsif ( $Config{ZM_SERVER_ID} ) {
|
||||||
@Storage_Areas = ZoneMinder::Storage->find( ServerId => $Config{ZM_SERVER_ID} );
|
@Storage_Areas = ZoneMinder::Storage->find( ServerId => $Config{ZM_SERVER_ID} );
|
||||||
|
if ( ! @Storage_Areas ) {
|
||||||
|
Fatal("No Storage Area found with ServerId =" . $Config{ZM_SERVER_ID});
|
||||||
|
}
|
||||||
Info("Auditing All Storage Areas on Server " . $Storage_Areas[0]->Server()->Name());
|
Info("Auditing All Storage Areas on Server " . $Storage_Areas[0]->Server()->Name());
|
||||||
} else {
|
} else {
|
||||||
@Storage_Areas = ZoneMinder::Storage->find();
|
@Storage_Areas = ZoneMinder::Storage->find();
|
||||||
|
|
Loading…
Reference in New Issue