Add missing sudo call for systemd-inhibit
This commit is contained in:
parent
8a0f6f1d7c
commit
7ce84b45cf
|
@ -15,7 +15,7 @@ function encode-with-ffmpeg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run-apt-upgrade() {
|
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
|
local host=$1
|
||||||
|
|
||||||
if [[ -z $host ]]; then
|
if [[ -z $host ]]; then
|
||||||
|
|
Loading…
Reference in New Issue