more unattended work

This commit is contained in:
Robin Appelman 2025-09-09 20:19:00 +02:00
commit 1017ebf735

View file

@ -142,15 +142,10 @@ async fn setup(
.await?;
info!("disabling unattended upgrades");
if timeout(Duration::from_secs(5), async {
let _ = ssh.exec("systemctl stop unattended-upgrades").await;
let _ = ssh.exec("apt-get purge unattended-upgrades").await;
})
.await
.is_err()
{
error!("Timed out while disabling unattended upgrades");
}
ssh.exec("systemctl disable --now unattended-upgrades")
.await?;
ssh.exec("apt-get -qq --yes --force-yes purge unattended-upgrades")
.await?;
info!("setting up prometheus");
ssh.exec("wget https://github.com/icewind1991/palantir/raw/main/palantir.service -O /etc/systemd/system/palantir.service").await?;