Skip to content
Snippets Groups Projects
Commit 8bed39fa authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: don't load pico_service password file upon rebootstrap

parent a3fefaa1
No related branches found
No related tags found
1 merge request!893feat: --config parameter to specify picodata configuration file
......@@ -23,6 +23,13 @@ pub fn main(args: args::Run) -> ! {
// initialization.
tlog::set_log_level(config.instance.log_level());
if let Some(filename) = &config.instance.service_password_file {
if let Err(e) = crate::pico_service::read_pico_service_password_from_file(filename) {
tlog!(Error, "{e}");
std::process::exit(1);
}
}
// Tarantool implicitly parses some environment variables.
// We don't want them to affect the behavior and thus filter them out.
for (k, _) in std::env::vars() {
......
......@@ -509,10 +509,6 @@ impl Entrypoint {
config: PicodataConfig,
to_supervisor: ipc::Sender<IpcMessage>,
) -> Result<(), Error> {
if let Some(filename) = &config.instance.service_password_file {
pico_service::read_pico_service_password_from_file(filename)?;
}
match self {
Self::StartDiscover => start_discover(&config, to_supervisor)?,
Self::StartBoot => start_boot(&config)?,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment