2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Merge pull request #2419 from jjohnson42/fixbmcsetup

Quote user and password in ipmitool
This commit is contained in:
zet809
2017-01-19 15:22:30 +08:00
committed by GitHub

View File

@ -440,7 +440,7 @@ for user in $BMCUS; do
TRIES=0
if [ "$CURRENTUSER" != "$user" ]; then
# Change the user name, if necessary
while ! ipmitool -d $idev user set name $USERSLOT $user; do
while ! ipmitool -d $idev user set name $USERSLOT "$user"; do
sleep 1
let TRIES=TRIES+1
if [ $TRIES -gt $TIMEOUT ]; then break; fi
@ -455,7 +455,7 @@ for bmcp in $BMCPW; do
TRIES=0
# Set the password for the specified user
while ! ipmitool -d $idev user set password $USERSLOT $bmcp; do
while ! ipmitool -d $idev user set password $USERSLOT "$bmcp"; do
sleep 1
let TRIES=TRIES+1
if [ $TRIES -gt $TIMEOUT ]; then break; fi