mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
misc fixes (#2892)
* use docker for build steps that require linux when not on linux * use fuse for overlay * quiet mountpoint * node 22 * misc fixes * make shasum more compliant * optimize download-base-image.sh with cleaner url handling and checksum verification * fix script * fixes #2900 * bump node and npm versions in web readme * Minor pl.ts fixes * fixes in response to synapse issues * beta.8 * update ts-matches * beta.11 * pl.ts finetuning --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -5,8 +5,22 @@ use models::{FromStrParser, PackageId};
|
||||
|
||||
use crate::service::effects::prelude::*;
|
||||
use crate::service::rpc::CallbackId;
|
||||
use crate::service::RebuildParams;
|
||||
use crate::status::MainStatus;
|
||||
|
||||
pub async fn rebuild(context: EffectContext) -> Result<(), Error> {
|
||||
let seed = context.deref()?.seed.clone();
|
||||
let ctx = seed.ctx.clone();
|
||||
let id = seed.id.clone();
|
||||
drop(seed);
|
||||
tokio::spawn(async move {
|
||||
super::super::rebuild(ctx, RebuildParams { id })
|
||||
.await
|
||||
.log_err()
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn restart(
|
||||
context: EffectContext,
|
||||
ProcedureId { procedure_id }: ProcedureId,
|
||||
|
||||
@@ -34,6 +34,12 @@ pub fn handler<C: Context>() -> ParentHandler<C> {
|
||||
from_fn(callbacks::clear_callbacks).no_cli(),
|
||||
)
|
||||
// control
|
||||
.subcommand(
|
||||
"rebuild",
|
||||
from_fn_async(control::rebuild)
|
||||
.no_display()
|
||||
.with_call_remote::<ContainerCliContext>(),
|
||||
)
|
||||
.subcommand(
|
||||
"restart",
|
||||
from_fn_async(control::restart)
|
||||
|
||||
Reference in New Issue
Block a user