From 8a0f6f1d7c091ca76aa9cae6115a96cd88978423 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 8 Aug 2021 09:33:10 +0200 Subject: [PATCH] Try to inhibit interruptions during system package updates `systemd-inhibit` should do this, but experience shows that it's not always working as expected. However, having it is better than not having it. --- config/bash/scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bash/scripts.sh b/config/bash/scripts.sh index 95f266b..21e19e3 100755 --- a/config/bash/scripts.sh +++ b/config/bash/scripts.sh @@ -15,7 +15,7 @@ function encode-with-ffmpeg() { } function run-apt-upgrade() { - local upgrade_seq="sudo apt clean && sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo tripwire --check --interactive" + local upgrade_seq='systemd-inhibit --what=shutdown:idle:sleep /bin/bash -c "sudo apt clean && sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo tripwire --check --interactive"' local host=$1 if [[ -z $host ]]; then