Update powerwall.sh
This commit is contained in:
@@ -11,7 +11,7 @@ source /opt/idssys/powerwall/inc/power.inc.sh
|
|||||||
source /opt/idssys/powerwall/inc/temp.inc.sh
|
source /opt/idssys/powerwall/inc/temp.inc.sh
|
||||||
|
|
||||||
|
|
||||||
# TEST=true
|
TEST=true
|
||||||
|
|
||||||
shopt -s lastpipe
|
shopt -s lastpipe
|
||||||
|
|
||||||
@@ -242,7 +242,7 @@ SHUTDOWN_SERVER(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
##INCREASE CPU OVERCOMMIT
|
##INCREASE CPU OVERCOMMIT
|
||||||
if [ "${ESXI_HOST}" != "10.2.1.11" ] && [ "${ESXI_HOST}" != "OFFSITE" ]; then
|
if [[ "${PW_OFFSITE_HOSTS}" != *"${ESXI_HOST}"* ]] && [ "${ESXI_HOST}" != "OFFSITE" ]; then
|
||||||
MSG="Increasing DRS CPU-Overcommit to 3"
|
MSG="Increasing DRS CPU-Overcommit to 3"
|
||||||
c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done
|
c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done
|
||||||
echo -en "${idsCL[White]}${MSG}${MSG_SPC}: "
|
echo -en "${idsCL[White]}${MSG}${MSG_SPC}: "
|
||||||
|
|||||||
Reference in New Issue
Block a user