Add missing sudo call for systemd-inhibit

This commit is contained in:
Daniel - 2021-08-22 10:03:46 +02:00
parent 8a0f6f1d7c
commit 7ce84b45cf
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='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 upgrade_seq='sudo 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