update
This commit is contained in:
0
esxi-scripts/esxi-shutdown.sh
Normal file → Executable file
0
esxi-scripts/esxi-shutdown.sh
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user