diff --git a/xCAT/postscripts/setupesx b/xCAT/postscripts/setupesx index 0e062cd60..d21c290ed 100644 --- a/xCAT/postscripts/setupesx +++ b/xCAT/postscripts/setupesx @@ -1,12 +1,18 @@ # esx setup # example on how to set up ESX. We setup ssh and also add a basic # VLAN configuration + +str_dir_name=`dirname $0` + +. $str_dir_name/xcatlib.sh + logger -t xcat -p local4.info setupesx # Enable SSH access to root and exchange keys sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config -/etc/init.d/sshd restart +#/etc/init.d/sshd restart +restartservice ssh if [ -r /etc/ssh/sshd_config ] then @@ -43,8 +49,11 @@ cat >/tmp/esxcfg.sh <