mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-11-22 09:49:50 +00:00
configDB.pm: move rescue modes from ENV to config file
git-svn-id: https://svn.fhem.de/fhem/trunk@16487 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc14ec521a
commit
03b78f9476
@ -230,10 +230,6 @@ my $cfgDB_dbpass = $dbconfig{password};
|
||||
my $cfgDB_dbtype;
|
||||
my $cfgDB_filename;
|
||||
|
||||
%dbconfig = ();
|
||||
@config = ();
|
||||
$configs = undef;
|
||||
$count = undef;
|
||||
|
||||
if($cfgDB_dbconn =~ m/pg:/i) {
|
||||
$cfgDB_dbtype ="POSTGRESQL";
|
||||
@ -246,15 +242,14 @@ if($cfgDB_dbconn =~ m/pg:/i) {
|
||||
$cfgDB_dbtype = "unknown";
|
||||
}
|
||||
|
||||
#$configDB{attr}{nostate} = 1 if($ENV{'cfgDB_nostate'});
|
||||
#$configDB{attr}{rescue} = 1 if($ENV{'cfgDB_rescue'});
|
||||
#$configDB{attr}{loadversion} = $ENV{'cfgDB_version'} ? $ENV{'cfgDB_version'} : 0;
|
||||
|
||||
$configDB{attr}{nostate} = defined($dbconfig{nostate}) ? $dbconfig{nostate} : 0;
|
||||
$configDB{attr}{rescue} = defined($dbconfig{rescue}) ? $dbconfig{rescue} : 0;
|
||||
$configDB{attr}{loadversion} = defined($dbconfig{loadversion}) ? $dbconfig{loadversion} : 0;
|
||||
|
||||
#$configDB{attr}{rescue} = 1;
|
||||
%dbconfig = ();
|
||||
@config = ();
|
||||
$configs = undef;
|
||||
$count = undef;
|
||||
|
||||
##################################################
|
||||
# Basic functions needed for DB configuration
|
||||
|
Loading…
Reference in New Issue
Block a user