mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix bug where migrations would only run if the service was previously configured
This commit is contained in:
committed by
Aiden McClelland
parent
badf8c508f
commit
8e5a7ea9a7
@@ -956,12 +956,11 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
|
|||||||
migration.or(prev_migration)
|
migration.or(prev_migration)
|
||||||
};
|
};
|
||||||
|
|
||||||
let configured = prev_is_configured
|
let configured = if let Some(f) = viable_migration {
|
||||||
&& if let Some(f) = viable_migration {
|
f.await?.configured && prev_is_configured
|
||||||
f.await?.configured
|
} else {
|
||||||
} else {
|
false
|
||||||
false
|
};
|
||||||
};
|
|
||||||
if configured && manifest.config.is_some() {
|
if configured && manifest.config.is_some() {
|
||||||
crate::config::configure(
|
crate::config::configure(
|
||||||
ctx,
|
ctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user