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