Update controller and custom to use our for db handles
This commit is contained in:
@@ -44,13 +44,13 @@ use esmith::NetworksDB::UTF8;
|
||||
use esmith::HostsDB;
|
||||
use esmith::DomainsDB::UTF8;
|
||||
|
||||
my $cdb;
|
||||
my $adb;
|
||||
my $ndb;
|
||||
my $hdb;
|
||||
my $ddb;
|
||||
our $cdb;
|
||||
our $adb;
|
||||
our $ndb;
|
||||
our $hdb;
|
||||
our $ddb;
|
||||
|
||||
my %${prefix}_data;
|
||||
our %${prefix}_data;
|
||||
|
||||
require '/usr/share/smanager/lib/SrvMngr/Controller/${PackageName}-Custom.pm'; #The code that is to be added by the developer
|
||||
|
||||
|
@@ -18,11 +18,11 @@ use constant TRUE => 1;
|
||||
|
||||
|
||||
#The most common ones - open DB when required.
|
||||
my $cdb;
|
||||
my $adb;
|
||||
my $ndb;
|
||||
my $hdb;
|
||||
my $ddb;
|
||||
#my $cdb;
|
||||
#my $adb;
|
||||
#my $ndb;
|
||||
#my $hdb;
|
||||
#my $ddb;
|
||||
|
||||
#The most common ones - you might want to use these if you need to make sure that the DB is refreshed.
|
||||
#$cdb = esmith::ConfigDB::UTF8->open() || die("Couldn't open config db");
|
||||
|
Reference in New Issue
Block a user