smeserver-zoneminder/root/etc/e-smith/db/configuration/migrate/zoneminder

10 lines
434 B
Plaintext

{
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:]'`);
}