diff --git a/setup/start/sudoers b/setup/start/sudoers index 348f83326..f353ba447 100644 --- a/setup/start/sudoers +++ b/setup/start/sudoers @@ -22,9 +22,6 @@ yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/collectlogs.sh Defaults!/home/yellowtent/box/src/scripts/retire.sh env_keep="HOME BOX_ENV" 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/scripts/rmbackup.sh b/src/scripts/rmbackup.sh deleted file mode 100755 index 1c8f95647..000000000 --- a/src/scripts/rmbackup.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail - -if [[ ${EUID} -ne 0 ]]; then - echo "This script should be run as root." > /dev/stderr - exit 1 -fi - -if [[ $# -eq 0 ]]; then - echo "No arguments supplied" - exit 1 -fi - -if [[ "$1" == "--check" ]]; then - echo "OK" - exit 0 -fi - -# remove the file -rm -rf "${1}" diff --git a/src/test/checkInstall b/src/test/checkInstall index 5e9cd8e9d..8e3d599be 100755 --- a/src/test/checkInstall +++ b/src/test/checkInstall @@ -12,7 +12,6 @@ sudo -k || sudo --reset-timestamp scripts=("${SOURCE_DIR}/src/scripts/rmappdir.sh" \ "${SOURCE_DIR}/src/scripts/createappdir.sh" \ "${SOURCE_DIR}/src/scripts/reloadnginx.sh" \ - "${SOURCE_DIR}/src/scripts/rmbackup.sh" \ "${SOURCE_DIR}/src/scripts/reboot.sh" \ "${SOURCE_DIR}/src/scripts/update.sh" \ "${SOURCE_DIR}/src/scripts/collectlogs.sh" \