[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: Re: [Linux-ha-dev] a small patch for 1node.sh
From: Andrew Beekhof (GMail) <beekhof () gmail ! com>
Date: 2005-02-15 7:26:45
Message-ID: a0fcc1de63e08fd6048490fb2062b024 () gmail ! com
[Download RAW message or body]
Revision: 1.44, Sat Feb 12 20:29:42 2005 UTC (2 days, 10 hours ago) by
andrew
function remote_cmd() {
user=$1
host=$2
shift
shift
if [ $local_version = "1" ]; then
su ${user} -c "$*"
else
`which ssh` ${user}@${host} "$*"
fi
return $?;
}
On Feb 15, 2005, at 1:29 AM, Guochun Shi wrote:
> this patch is to fix the Permission denied errors in 1node.sh
>
> [root@posic066 test]# bash 1node.sh -L
> Hint: Define CRM_LOCAL_OPTS=/config/file/name.path to automatically
> set options for your environment
> Set test_node_1="posic066"
> Unset test_node_2 and test_node_3
> ########### Begining iteration 1 of 1 ###########
> Test dir: /root/ha-tests/1node.sh/2005-Feb-14_17:40
> Mon Feb 14 17:40:18 CST 2005 : Cleaning up on posic066
> Mon Feb 14 17:40:20 CST 2005 : wait for HA to start
> Mon Feb 14 17:40:41 CST 2005 : Check if CRMd was started too
> Mon Feb 14 17:40:41 CST 2005 : Analyse CRMd startup
> Mon Feb 14 17:40:55 CST 2005 : Create the first constraint and wait
> for S_IDLE
> Mon Feb 14 17:40:55 CST 2005 : Create the second constraint and wait
> for S_IDLE
> Mon Feb 14 17:40:56 CST 2005 : Create the first resource and wait for
> S_IDLE after start
> Mon Feb 14 17:40:57 CST 2005 : Create the second resource and wait for
> S_IDLE after start
> Mon Feb 14 17:40:58 CST 2005 : Check for S_IDLE, the DC and running
> resources
> Mon Feb 14 17:41:01 CST 2005 : Shutdown posic066
> bash: /root/.bashrc: Permission denied
> bash: /root/.bashrc: Permission denied
> crmd: no process killed
> test: PASSED
>
> Index: helper.sh.in
> ===================================================================
> RCS file: /home/cvs/linux-ha/linux-ha/crm/test/helper.sh.in,v
> retrieving revision 1.44
> diff -u -r1.44 helper.sh.in
> --- helper.sh.in 12 Feb 2005 20:29:42 -0000 1.44
> +++ helper.sh.in 15 Feb 2005 00:28:10 -0000
> @@ -120,7 +120,7 @@
> shift
>
> if [ $local_version = "1" ]; then
> - su ${user} -c "$*"
> + su - ${user} -c "$*"
> else
> `which ssh` ${user}@${host} "$*"
> fi
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
>
--
Andrew Beekhof
"Would the last person to leave please turn out the enlightenment?" -
TISM
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic