diff --git a/setup/start/sudoers b/setup/start/sudoers index 1141108db..7bdd4d454 100644 --- a/setup/start/sudoers +++ b/setup/start/sudoers @@ -25,9 +25,6 @@ yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/configurecollec Defaults!/home/yellowtent/box/src/scripts/collectlogs.sh env_keep="HOME BOX_ENV" 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/update.sh env_keep="HOME BOX_ENV" yellowtent ALL=(root) NOPASSWD: /home/yellowtent/box/src/scripts/update.sh diff --git a/src/scripts/retire.sh b/src/scripts/retire.sh deleted file mode 100755 index 9f85bf0a4..000000000 --- a/src/scripts/retire.sh +++ /dev/null @@ -1,28 +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 - -readonly BOX_SRC_DIR=/home/yellowtent/box - -if [[ $# == 1 && "$1" == "--check" ]]; then - echo "OK" - exit 0 -fi - -echo "Retiring cloudron" - -if [[ "${BOX_ENV}" != "cloudron" ]]; then - exit 0 -fi - -echo "Stopping apps" -systemctl stop docker # stop the apps - -# do this at the end since stopping the box will kill this script as well -echo "Stopping Cloudron Smartserver" -"${BOX_SRC_DIR}/setup/stop.sh"