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.
This commit is contained in:
Daniel - 2021-08-08 09:33:10 +02:00
parent d9d64715d7
commit 8a0f6f1d7c
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 1 deletions

View File

@ -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