feat: make sure to install gpg
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
fcce281da3
commit
36281f1d54
@ -117,9 +117,10 @@ impl Guest for Component {
|
||||
|
||||
fn install_alloy() -> Result<(), String> {
|
||||
println!("=== installing alloy ===");
|
||||
run_command(["apt", "install", "gpg"])?;
|
||||
run_command(["apt", "install", "-y", "gpg"])?;
|
||||
run_command(["mkdir", "-p", "/etc/apt/keyrings/"])?;
|
||||
run_command(["bash", "-c", "wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null && echo \"deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main\" | sudo tee /etc/apt/sources.list.d/grafana.list"])?;
|
||||
run_command(["bash", "-c", "wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null"])?;
|
||||
run_command(["bash", "-c", "echo \"deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main\" | sudo tee /etc/apt/sources.list.d/grafana.list"])?;
|
||||
run_command(["apt-get", "update"])?;
|
||||
run_command(["apt-get", "install", "alloy"])?;
|
||||
println!("=== finished installing alloy ===");
|
||||
|
Loading…
Reference in New Issue
Block a user