Skip to content

Commit 8272bf7

Browse files
committed
removed the constraint to change default conf directory based on a build
1 parent 5cb00b7 commit 8272bf7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

core/src/main/groovy/noe/common/DefaultProperties.groovy

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,11 @@ class DefaultProperties {
134134
public static final String UDP_MCAST_ADDRESS = Library.getUniversalProperty('udp.mcast.address', Library.getUniversalProperty("MCAST_ADDR", '228.11.11.11'))
135135
public static final String JGROUPS_MCAST_PORT = Library.getUniversalProperty('jgroups.mcast.port', Library.getUniversalProperty("MCAST_PORT", '45688'))
136136

137-
// From 2.4.51 onwards all the file that contain the LoadModule directive were moved from conf.d to conf.modules.d
138-
private static final boolean ConfigDirectoryChange = new Version(apacheCoreVersion().toString()) >= new Version("2.4.51.DR0")
139137

140138
// Added to allow for the new naming convention used in RHEL9
141-
static final String MOD_CLUSTER_CONFIG_FILE = new Platform().isRHEL9() || ConfigDirectoryChange ? Library.getUniversalProperty('mod.proxy.cluster.config.file', "mod_proxy_cluster.conf") : Library.getUniversalProperty('modcluster.config.file', "mod_cluster.conf")
139+
public static final String MOD_CLUSTER_CONFIG_FILE = Library.getUniversalProperty('mod.proxy.cluster.config.file', "mod_proxy_cluster.conf")
142140
// Same as above but naming reflects the new changed file name
143-
static final String MOD_PROXY_CLUSTER_CONFIG_FILE = MOD_CLUSTER_CONFIG_FILE
144-
145-
// From 2.4.51 onwards all the file that contain the LoadModule directive were moved from conf.d to conf.modules.d
146-
public static final String CONF_DIRECTORY = ConfigDirectoryChange ? Library.getUniversalProperty('jbcs.conf.d.directory', "conf.modules.d") : Library.getUniversalProperty('jbcs.conf.d.directory', "conf.d")
141+
public static final String MOD_PROXY_CLUSTER_CONFIG_FILE = MOD_CLUSTER_CONFIG_FILE
142+
// Making the conf directory configurable
143+
public static final String CONF_DIRECTORY = Library.getUniversalProperty('jbcs.conf.d.directory', "conf.d")
147144
}

0 commit comments

Comments
 (0)