Update powerwall.sh

This commit is contained in:
2023-08-20 13:12:06 -05:00
parent 683fbbb38f
commit c826515d3b

View File

@@ -738,7 +738,7 @@ SHUTDOWN_SERVERS(){
echo "($datetime) - Shutting down ${1} servers" >> ${PW_LOGFILE}
[ "${TEST}" == "true" ] && echo "RUNNING IN TEST MODE" >> ${PW_LOGFILE}
if [ "${1}" == "MAIN" ] || [ "${1}" == "ALL" ]; then
if [ "${1^^}" == "MAIN" ] || [ "${1^^}" == "ALL" ]; then
if [ ! -f $FOLDER/shutdown.main ]; then
touch $FOLDER/shutdown.main
echo -en "Disabling CLS in vCenter ... "
@@ -790,7 +790,7 @@ SHUTDOWN_SERVERS(){
done
fi
fi
if [ "${1}" == "SYS" ] || [ "${1}" == "ALL" ]; then
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