From 4d360e379899bc317ee4e0dfa8d8da7eb2c0309d Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 31 Oct 2016 14:55:06 +0100 Subject: [PATCH] Allow update.sh to be run as root --- setup/container/sudoers | 3 +++ src/test/checkInstall | 1 + 2 files changed, 4 insertions(+) diff --git a/setup/container/sudoers b/setup/container/sudoers index 7035312e1..bb31f88d2 100644 --- a/setup/container/sudoers +++ b/setup/container/sudoers @@ -33,3 +33,6 @@ yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/retire.sh Defaults!/home/yellowtent/box/src/scripts/rmbackup.sh env_keep="HOME BOX_ENV" yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/rmbackup.sh + +Defaults!/home/yellowtent/box/src/scripts/update.sh env_keep="HOME BOX_ENV" +yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/update.sh diff --git a/src/test/checkInstall b/src/test/checkInstall index 97c899099..c99ffd5c8 100755 --- a/src/test/checkInstall +++ b/src/test/checkInstall @@ -17,6 +17,7 @@ scripts=("${SOURCE_DIR}/src/scripts/rmappdir.sh" \ "${SOURCE_DIR}/src/scripts/rmbackup.sh" \ "${SOURCE_DIR}/src/scripts/restoreapp.sh" \ "${SOURCE_DIR}/src/scripts/reboot.sh" \ + "${SOURCE_DIR}/src/scripts/update.sh" \ "${SOURCE_DIR}/src/scripts/collectlogs.sh" \ "${SOURCE_DIR}/src/scripts/reloadcollectd.sh")