From 9acd1e0a625a7c06018f6858bd5e6b888c86d470 Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 17 Apr 2013 08:19:32 +0000 Subject: [PATCH] fixed the bug when updatenode on ubuntu git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/install_chef_workstation | 25 +++-------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/xCAT/postscripts/install_chef_workstation b/xCAT/postscripts/install_chef_workstation index 08691840d..062692a77 100755 --- a/xCAT/postscripts/install_chef_workstation +++ b/xCAT/postscripts/install_chef_workstation @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html ##################################################### #=head1 install_chef_client @@ -63,27 +63,8 @@ then fi fi -if [ -z "$chefserver" ]; then - if [ -f /etc/chef-server/admin.pem -a -f /etc/chef-server/chef-validator.pem ]; then - echo "the current node is also a chef server" - if [ -f /opt/chef-server/embedded/bin/knife ]; then - if [ ! -f /usr/bin/knife ]; then - ln -s /opt/chef-server/embedded/bin/knife /usr/bin/knife - fi - fi - fi - - if [ -f /usr/bin/knife ]; then - #configure the chef configuration file - result=`dirname $0` - ${result}/config_chef_workstation - exit 0; - fi - -fi - -if [ $chefurl != "" ]; then - if [ "$CHEF_URL" != "" ]; then +if [ -z "$chefurl" ]; then + if [ -n "$CHEF_URL" ]; then chefurl=$CHEF_URL else arch=`uname -i`