2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

Remove trailing spaces in file xCAT/postscripts/joindomain

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent f6a9d777a1
commit 8522fcb905

View File

@ -6,8 +6,8 @@ HOSTPRINC=`hostname`
#generate a random 32 character password
MYPASS=$(tr -dc A-Za-z0-9 </dev/urandom|head -c 32)
if [ "$OSVER" = "rhels6" ]; then
#enable kerberos
if [ "$OSVER" = "rhels6" ]; then
#enable kerberos
authconfig --update --krb5realm=$UPDNSDOMAIN --enablekrb5kdcdns --enablekrb5
#change password
(echo $TEMPHOSTPASS;echo $MYPASS;echo $MYPASS)|kpasswd $HOSTPRINC