mirror of
https://codeberg.org/spire/dispenser.git
synced 2026-06-03 18:14:06 +02:00
more unattended work
This commit is contained in:
parent
b1ba701f7d
commit
1017ebf735
1 changed files with 4 additions and 9 deletions
13
src/main.rs
13
src/main.rs
|
|
@ -142,15 +142,10 @@ async fn setup(
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
info!("disabling unattended upgrades");
|
info!("disabling unattended upgrades");
|
||||||
if timeout(Duration::from_secs(5), async {
|
ssh.exec("systemctl disable --now unattended-upgrades")
|
||||||
let _ = ssh.exec("systemctl stop unattended-upgrades").await;
|
.await?;
|
||||||
let _ = ssh.exec("apt-get purge unattended-upgrades").await;
|
ssh.exec("apt-get -qq --yes --force-yes purge unattended-upgrades")
|
||||||
})
|
.await?;
|
||||||
.await
|
|
||||||
.is_err()
|
|
||||||
{
|
|
||||||
error!("Timed out while disabling unattended upgrades");
|
|
||||||
}
|
|
||||||
|
|
||||||
info!("setting up prometheus");
|
info!("setting up prometheus");
|
||||||
ssh.exec("wget https://github.com/icewind1991/palantir/raw/main/palantir.service -O /etc/systemd/system/palantir.service").await?;
|
ssh.exec("wget https://github.com/icewind1991/palantir/raw/main/palantir.service -O /etc/systemd/system/palantir.service").await?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue