fix bug where migrations would only run if the service was previously configured

This commit is contained in:
Aiden McClelland
2022-01-19 12:08:35 -07:00
committed by Aiden McClelland
parent badf8c508f
commit 8e5a7ea9a7

View File

@@ -956,12 +956,11 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
migration.or(prev_migration)
};
let configured = prev_is_configured
&& if let Some(f) = viable_migration {
f.await?.configured
} else {
false
};
let configured = if let Some(f) = viable_migration {
f.await?.configured && prev_is_configured
} else {
false
};
if configured && manifest.config.is_some() {
crate::config::configure(
ctx,