truestuff/shut-down-procedure.sh

12 lines
357 B
Bash
Executable File

#! /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}")"
. ${SHRC_D:-$USER_HOME/.pqb.shrc.d}/01_util.functions
set -e
${SCRIPT_DIR}/delete-all-catalogs.sh
${SCRIPT_DIR}/wait-for-idle-queue.sh
${SCRIPT_DIR}/stop-all-chrats.sh