Update powerwall.sh

This commit is contained in:
2023-11-02 15:12:07 -05:00
parent dcf0df1784
commit 4435b910ae

View File

@@ -991,13 +991,12 @@ SHUTDOWN_CRIT(){
SHUTDOWN_SERVERS(){
TEST=true
echo "YES2";
echo "(${datetime}) - Shutting down ${1} servers" >> ${PW_LOGFILE}
[ "${TEST}" == "true" ] && echo "RUNNING IN TEST MODE">>${PW_LOGFILE}
if [ "${1^^}" == "MAIN" ] || [ "${1^^}" == "ALL" ]; then
if [ ! -f $FOLDER/shutdown.main ]; then
touch $FOLDER/shutdown.main
if [ ! -f ${PW_FOLDER}/shutdown.main ]; then
touch ${PW_FOLDER}/shutdown.main
echo -en "Disabling CLS in vCenter ... "
if [ "${TEST}" != "true" ]; then
@@ -1052,9 +1051,9 @@ echo "YES2";
fi
fi
if [ "${1^^}" == "SYS" ] || [ "${1^^}" == "ALL" ]; then
[ ! -f $FOLDER/shutdown.main ] && [ "${2}" == "TEMP" ] && SHUTDOWN_SERVERS MAIN
if [ ! -f $FOLDER/shutdown.sys ]; then
touch $FOLDER/shutdown.sys
[ ! -f ${PW_FOLDER}/shutdown.main ] && [ "${2}" == "TEMP" ] && SHUTDOWN_SERVERS MAIN
if [ ! -f ${PW_FOLDER}/shutdown.sys ]; then
touch ${PW_FOLDER}/shutdown.sys
if [ "${1^^}" == "SYS" ]; then
echo -en "Disabling CLS in vCenter ... "