initial commit of file from CVS for smeserver-openvpn-bridge on Sat Sep 7 19:57:25 AEST 2024
This commit is contained in:
16
root/etc/e-smith/db/configuration/migrate/50openvpn-cipher
Normal file
16
root/etc/e-smith/db/configuration/migrate/50openvpn-cipher
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user