Ignore the default value of connector_plugindir
The default value isn't a valid path and should be changed later on.
This commit is contained in:
parent
e48c5d11fc
commit
3620db9b0a
@ -2696,6 +2696,16 @@ bool handle_path_arg(char** dest, const char* path, const char* arg, bool rd, bo
|
||||
|
||||
bool check_paths()
|
||||
{
|
||||
// The default path for the connector_plugindir isn't valid. This doesn't matter that much as we don't
|
||||
// include the plugins in the installation.
|
||||
if (strcmp(get_connector_plugindir(), default_connector_plugindir) != 0)
|
||||
{
|
||||
if (!check_dir_access(get_connector_plugindir(), true, false))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return check_dir_access(get_logdir(), true, false)
|
||||
&& check_dir_access(get_cachedir(), true, true)
|
||||
&& check_dir_access(get_configdir(), true, false)
|
||||
@ -2704,7 +2714,6 @@ bool check_paths()
|
||||
&& check_dir_access(get_langdir(), true, false)
|
||||
&& check_dir_access(get_piddir(), true, true)
|
||||
&& check_dir_access(get_config_persistdir(), true, true)
|
||||
&& check_dir_access(get_connector_plugindir(), true, false)
|
||||
&& check_dir_access(get_libdir(), true, false)
|
||||
&& check_dir_access(get_execdir(), true, false);
|
||||
}
|
||||
|
@ -8,8 +8,6 @@ language=@CMAKE_INSTALL_PREFIX@/lib/maxscale/
|
||||
piddir=@CMAKE_INSTALL_PREFIX@/run/maxscale/
|
||||
persistdir=@CMAKE_INSTALL_PREFIX@/lib/maxscale/maxscale.cnf.d/
|
||||
module_configdir=@CMAKE_INSTALL_PREFIX@/etc/maxscale.modules.d/
|
||||
# This isn't really correct but it's OK as long as it's an empty directory
|
||||
connector_plugindir=@CMAKE_INSTALL_PREFIX@/etc/maxscale.modules.d/
|
||||
admin_auth=false
|
||||
|
||||
[server1]
|
||||
|
@ -8,8 +8,6 @@ language=@CMAKE_INSTALL_PREFIX@/secondary/lib/maxscale/
|
||||
piddir=@CMAKE_INSTALL_PREFIX@/secondary/run/maxscale
|
||||
persistdir=@CMAKE_INSTALL_PREFIX@/secondary/lib/maxscale/maxscale.cnf.d/
|
||||
module_configdir=@CMAKE_INSTALL_PREFIX@/secondary/etc/maxscale.modules.d/
|
||||
# This isn't really correct but it's OK as long as it's an empty directory
|
||||
connector_plugindir=@CMAKE_INSTALL_PREFIX@/secondary/etc/maxscale.modules.d/
|
||||
admin_auth=false
|
||||
admin_port=8990
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user