update remote config
This commit is contained in:
@@ -346,8 +346,16 @@ protected:
|
|||||||
config2->set_database_type(database_type::sqlite);
|
config2->set_database_type(database_type::sqlite);
|
||||||
#endif // !defined(_WIN32)
|
#endif // !defined(_WIN32)
|
||||||
|
|
||||||
drive_args2 = {"-dd", config2->get_data_directory(), "-rm",
|
auto rem_cfg = config2->get_remote_config();
|
||||||
fmt::format("localhost:{}", provider_t::remote_port)};
|
rem_cfg.host_name_or_ip = "localhost";
|
||||||
|
rem_cfg.api_port = provider_t::remote_port;
|
||||||
|
config2->set_remote_config(rem_cfg);
|
||||||
|
drive_args2 = {
|
||||||
|
"-dd",
|
||||||
|
config2->get_data_directory(),
|
||||||
|
"-rm",
|
||||||
|
fmt::format("localhost:{}", provider_t::remote_port),
|
||||||
|
};
|
||||||
|
|
||||||
platform_ops::execute_mount(drive_args2, mount_location);
|
platform_ops::execute_mount(drive_args2, mount_location);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user