This commit is contained in:
2023-05-15 16:09:16 -05:00
parent 915b4b2cb5
commit 07fc935418
2 changed files with 2 additions and 2 deletions

0
esxi-scripts/esxi-shutdown.sh Normal file → Executable file
View File

View File

@@ -399,9 +399,9 @@ SHUTDOWN_SERVERS(){
done
elif [ "${1}" = "SYS" ]; then
touch $FOLDER/shutdown.sys
[ ! -f $FOLDER/shutdown.main ] && SHUTDOWN_SERVERS MAIN
touch $FOLDER/shutdown.sys
for ESXIHOST in "${SYSHOSTS[@]}"; do
echo -en "Shutting Down VM's on: ${ESXIHOST} ... "
${FOLDER}/esxi-scripts/vm-shutdown.ps1 ${ESXIHOST} >/dev/null 2>&1