mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +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,9 +956,8 @@ 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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user