mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +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)
|
||||
};
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user