initial commit of file from CVS for smeserver-openvpn-bridge on Sat Sep 7 19:57:25 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 19:57:25 +10:00
parent d755aea606
commit 9dcb47db31
73 changed files with 14036 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
{
#migrate cipher to Cipher that is used in all other openvpn contribs
my $opv = $DB->get('openvpn-bridge') || $DB->new_record('openvpn-bridge', {type => 'service'});
my %old2new = (
'cipher' => "Cipher",
);
for my $keyt ( keys %old2new )
{
next unless ( $opv->prop($keyt) );
my $value = $DB->get_prop_and_delete('openvpn-bridge', $keyt);
next if ( $opv->prop($old2new{$keyt}) );
$DB->set_prop('openvpn-bridge', $old2new{$keyt}, $value);
}
}