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