Don't try to start if the passwords aren't present

This commit is contained in:
niten 2023-10-17 15:33:04 -07:00
parent b6fe2ce411
commit ade2e1caa0
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ in {
] ++ (map (topic: "--event-topic=${topic}") cfg.event-topics) ] ++ (map (topic: "--event-topic=${topic}") cfg.event-topics)
++ (optional cfg.verbose "--verbose"))); ++ (optional cfg.verbose "--verbose")));
}; };
unitConfig.ConditionPathExists =
[ cfg.mqtt.incoming.password-file cfg.mqtt.outgoing.password-file ];
}; };
}; };
} }