{ my $rec = $DB->get('wpkg') || $DB->new_record('wpkg', { type => 'service' }); my $pw = $rec->prop('VNCPassword'); if (not $pw){ $pw = `/usr/bin/openssl rand -base64 6`; chomp($pw); $rec->set_prop('VNCPassword', $pw); } }