initial commit of file from CVS for smeserver-zoneminder on Sat Sep 7 21:19:42 AEST 2024
This commit is contained in:
9
root/etc/e-smith/db/configuration/migrate/zoneminder
Normal file
9
root/etc/e-smith/db/configuration/migrate/zoneminder
Normal 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:]'`);
|
||||
}
|
Reference in New Issue
Block a user