truestuff/shut-down-procedure.sh

14 lines
370 B
Bash
Raw Normal View History

2023-05-09 03:08:59 +00:00
#! /usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
USER_HOME=$HOME
[[ -n "${SUDO_USER}" ]] && USER_HOME="$(eval "echo ~${SUDO_USER}")"
2023-07-12 03:17:21 +00:00
. ${SHRC_D:-$SCRIPT_DIR}/01_util.functions
2023-05-09 03:08:59 +00:00
set -e
${SCRIPT_DIR}/delete-all-catalogs.sh
2023-05-09 04:31:22 +00:00
${SCRIPT_DIR}/wait-for-idle-queue.sh
2023-05-09 03:08:59 +00:00
${SCRIPT_DIR}/stop-all-chrats.sh
2023-06-01 02:56:18 +00:00
cli -c 'system reboot'