CB-346 Server rec-configuration allowance

This commit is contained in:
Serge Rider
2020-10-10 12:24:29 +03:00
parent 3eaae6c402
commit e69622a4b0
@@ -58,6 +58,8 @@ public class CBApplication extends BaseApplicationImpl {
private static final Log log = Log.getLog(CBApplication.class);
private static final boolean RECONFIGURATION_ALLOWED = true;
static {
Log.setDefaultDebugStream(System.out);
}
@@ -407,7 +409,7 @@ public class CBApplication extends BaseApplicationImpl {
String adminPassword,
CBAppConfig appConfig) throws DBException
{
if (!isConfigurationMode()) {
if (!RECONFIGURATION_ALLOWED && !isConfigurationMode()) {
throw new DBException("Application must be in configuration mode");
}