initial commit of file from CVS for smeserver-geneweb on Sat Sep 7 19:54:18 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/geneweb/DBDir
Normal file
1
root/etc/e-smith/db/configuration/defaults/geneweb/DBDir
Normal file
@@ -0,0 +1 @@
|
||||
/opt/geneweb/bases
|
@@ -0,0 +1 @@
|
||||
2317
|
@@ -0,0 +1 @@
|
||||
private
|
@@ -0,0 +1 @@
|
||||
geneweb
|
@@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/configuration/defaults/geneweb/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/geneweb/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
2316
|
@@ -0,0 +1 @@
|
||||
private
|
@@ -0,0 +1 @@
|
||||
gwsetup
|
1
root/etc/e-smith/db/configuration/defaults/gwsetup/only
Normal file
1
root/etc/e-smith/db/configuration/defaults/gwsetup/only
Normal file
@@ -0,0 +1 @@
|
||||
127.0.0.1
|
@@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/configuration/defaults/gwsetup/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/gwsetup/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
27
root/etc/e-smith/db/configuration/migrate/20geneweb
Normal file
27
root/etc/e-smith/db/configuration/migrate/20geneweb
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
|
||||
# migrate of geneweb, gwsetup configuration
|
||||
my ($rec, $ip, $ip2);
|
||||
|
||||
for my $service ( qw( geneweb gwsetup ) ) {
|
||||
if ( $rec = $DB->get($service) ) {
|
||||
# change TCPPort attributes to TcpPort
|
||||
if ( $rec->prop('TCPPort') ) {
|
||||
$rec->set_prop('TcpPort', $rec->prop('TCPPort'));
|
||||
$rec->delete_prop('TCPPort');
|
||||
}
|
||||
$ip = ($rec->prop('only') || '') if ($service eq 'geneweb');
|
||||
$ip2 = ($rec->prop('only') || '') if ($service eq 'gwsetup');
|
||||
}
|
||||
}
|
||||
|
||||
# move 'only' from geneweb to gwsetup if existing
|
||||
|
||||
return unless $ip;
|
||||
|
||||
$rec = $DB->get('geneweb');
|
||||
rec->delete_prop('only') if $ip;
|
||||
|
||||
$DB->set_prop('gwsetup', 'only', "$ip") unless $ip2;
|
||||
|
||||
}
|
Reference in New Issue
Block a user