From 28d2110a5e10eb58ef99931b89286a6c31959274 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 19 Nov 2014 09:42:19 -0500 Subject: [PATCH] fix bug#4366 change /bin/sh to /bin/bash --- xCAT/postscripts/addsiteyum | 2 +- xCAT/postscripts/chef-client | 2 +- xCAT/postscripts/config_chef_client | 2 +- xCAT/postscripts/config_chef_server | 2 +- xCAT/postscripts/config_chef_workstation | 2 +- xCAT/postscripts/config_puppet_client | 2 +- xCAT/postscripts/config_puppet_server | 2 +- xCAT/postscripts/configib | 2 +- xCAT/postscripts/install_chef_client | 2 +- xCAT/postscripts/install_chef_server | 2 +- xCAT/postscripts/install_chef_workstation | 2 +- xCAT/postscripts/install_puppet_client | 2 +- xCAT/postscripts/install_puppet_server | 2 +- xCAT/postscripts/ospkgs | 2 +- xCAT/postscripts/otherpkgs | 2 +- xCAT/postscripts/remoteshell | 2 +- xCAT/postscripts/setbootfromdisk | 2 +- xCAT/postscripts/setupesx | 2 +- xCAT/postscripts/setupntp | 2 +- xCAT/postscripts/setupscratch | 2 +- xCAT/postscripts/sudoer | 2 +- xCAT/postscripts/syslog | 2 +- xCAT/postscripts/xcatclient | 2 +- xCAT/postscripts/xcatinstallpost | 2 +- xCAT/postscripts/xcatserver | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/xCAT/postscripts/addsiteyum b/xCAT/postscripts/addsiteyum index 9e980dcb3..c8b5fb1ed 100755 --- a/xCAT/postscripts/addsiteyum +++ b/xCAT/postscripts/addsiteyum @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash cd `dirname $0` if [ ! -d repos/$OSVER/$ARCH ]; then logger -t xcat -p local4.err "addsiteyum: repos/$OSVER/$ARCH is not a directory" diff --git a/xCAT/postscripts/chef-client b/xCAT/postscripts/chef-client index 834b78f3f..8485aa837 100755 --- a/xCAT/postscripts/chef-client +++ b/xCAT/postscripts/chef-client @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash #This script will invoke the config_chef_client directly. #If the chef-server and chef-client are installed successfully at first, diff --git a/xCAT/postscripts/config_chef_client b/xCAT/postscripts/config_chef_client index 4d06eca7f..60dacd811 100755 --- a/xCAT/postscripts/config_chef_client +++ b/xCAT/postscripts/config_chef_client @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/config_chef_server b/xCAT/postscripts/config_chef_server index 538c737f4..d3abdc077 100755 --- a/xCAT/postscripts/config_chef_server +++ b/xCAT/postscripts/config_chef_server @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/config_chef_workstation b/xCAT/postscripts/config_chef_workstation index 885fb3f0d..0bb826af8 100755 --- a/xCAT/postscripts/config_chef_workstation +++ b/xCAT/postscripts/config_chef_workstation @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/config_puppet_client b/xCAT/postscripts/config_puppet_client index 3bea76930..5442f2e98 100755 --- a/xCAT/postscripts/config_puppet_client +++ b/xCAT/postscripts/config_puppet_client @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/config_puppet_server b/xCAT/postscripts/config_puppet_server index fff6373c4..d0e01fd7e 100755 --- a/xCAT/postscripts/config_puppet_server +++ b/xCAT/postscripts/config_puppet_server @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/configib b/xCAT/postscripts/configib index 3637cfb25..2cfebb470 100755 --- a/xCAT/postscripts/configib +++ b/xCAT/postscripts/configib @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html # Internal script used by confignics only # xCAT post script for configuring ib adapters. diff --git a/xCAT/postscripts/install_chef_client b/xCAT/postscripts/install_chef_client index 69e799e39..ad6342b79 100755 --- a/xCAT/postscripts/install_chef_client +++ b/xCAT/postscripts/install_chef_client @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html ##################################################### #=head1 install_chef_client diff --git a/xCAT/postscripts/install_chef_server b/xCAT/postscripts/install_chef_server index 7af79efa4..8ccaa87fd 100755 --- a/xCAT/postscripts/install_chef_server +++ b/xCAT/postscripts/install_chef_server @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html ##################################################### #=head1 install_chef_server diff --git a/xCAT/postscripts/install_chef_workstation b/xCAT/postscripts/install_chef_workstation index 8823ebe19..38098613a 100755 --- a/xCAT/postscripts/install_chef_workstation +++ b/xCAT/postscripts/install_chef_workstation @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html ##################################################### #=head1 install_chef_client diff --git a/xCAT/postscripts/install_puppet_client b/xCAT/postscripts/install_puppet_client index be30f15f7..24baca49b 100755 --- a/xCAT/postscripts/install_puppet_client +++ b/xCAT/postscripts/install_puppet_client @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/install_puppet_server b/xCAT/postscripts/install_puppet_server index 8c399ebb4..086797a6d 100755 --- a/xCAT/postscripts/install_puppet_server +++ b/xCAT/postscripts/install_puppet_server @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 2b1fc480d..c3c0e8c91 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2010 EPL license http://www.eclipse.org/legal/epl-v10.html #------------------------------------------------------------------------------- diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index d851b493c..69099a94f 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #------------------------------------------------------------------------------- diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 0157d3584..b5778c9df 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #(C)IBM Corp # This script adds xCAT specific setup to the /etc/ssh/sshd_config and ssh_config file diff --git a/xCAT/postscripts/setbootfromdisk b/xCAT/postscripts/setbootfromdisk index 13b45c94f..251f0608c 100755 --- a/xCAT/postscripts/setbootfromdisk +++ b/xCAT/postscripts/setbootfromdisk @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # IBM(c) 2010 EPL license http://www.eclipse.org/legal/epl-v10.html #(C)IBM Corp diff --git a/xCAT/postscripts/setupesx b/xCAT/postscripts/setupesx index 40fe21f54..ed785c2ff 100755 --- a/xCAT/postscripts/setupesx +++ b/xCAT/postscripts/setupesx @@ -47,7 +47,7 @@ fi # create a script that will launch the first time ESX does and configure # the network cat >/tmp/esxcfg.sh <