initial commit of file from CVS for smeserver-zoneminder on Sat Sep 7 21:19:42 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:19:42 +10:00
parent b982e5614c
commit 91cd950535
27 changed files with 870 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
{
my $zoneminder = $DB->get('zoneminder') || $DB->new_record('zoneminder', {type => 'service'});
my $dbpass = $zoneminder->prop('DbPassword') ||
$zoneminder->set_prop('DbPassword', `/usr/bin/openssl rand -base64 40 | /usr/bin/tr -c -d '[:graph:]'`);
my $managerpass = $zoneminder->prop('ManagerPassword') ||
$zoneminder->set_prop('ManagerPassword', `/usr/bin/openssl rand -base64 10 | /usr/bin/tr -c -d '[:alnum:]'`);
}