remove retire.sh

This commit is contained in:
Girish Ramakrishnan
2021-02-25 10:32:53 -08:00
parent 5a6b261ba2
commit 7a6a170451
2 changed files with 0 additions and 31 deletions

View File

@@ -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"