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:
parent
d9d64715d7
commit
8a0f6f1d7c
|
@ -15,7 +15,7 @@ function encode-with-ffmpeg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run-apt-upgrade() {
|
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
|
local host=$1
|
||||||
|
|
||||||
if [[ -z $host ]]; then
|
if [[ -z $host ]]; then
|
||||||
|
|
Loading…
Reference in New Issue