From 7eac6700a0be4dc123708cd9b4957e350ded0720 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 25 Nov 2008 22:06:52 +0000 Subject: [PATCH] updated scripts for copy stuff to pl_genicw --- component/component_slice_config.sh | 8 ++++++++ component/copynode.sh | 7 +++++-- component/sshnode.sh | 4 +++- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 component/component_slice_config.sh diff --git a/component/component_slice_config.sh b/component/component_slice_config.sh new file mode 100644 index 00000000..ee263d83 --- /dev/null +++ b/component/component_slice_config.sh @@ -0,0 +1,8 @@ +USER=pl_genicw +KEY_FILE=../cmdline/test.pkey +DEST_DIR=/home/pl_genicw + +# for installing into the nodemanager +#USER=root +#KEY_FILE=root_ssh_key.rsa +#DEST_DIR=/usr/share/NodeManager diff --git a/component/copynode.sh b/component/copynode.sh index 0a5108ec..ce5698aa 100755 --- a/component/copynode.sh +++ b/component/copynode.sh @@ -1,5 +1,8 @@ #!/bin/bash + +source component_slice_config.sh + echo connecting to node: $1 -export FILES="component.py ../util/cert.py ../util/credential.py ../util/excep.py ../util/geniserver.py ../util/geniticket.py ../util/gid.py ../util/misc.py ../util/record.py ../util/rights.py ../util/report.py ../util/trustedroot.py ../registry/trusted_roots install" +export FILES="component.py ../util/cert.py ../util/credential.py ../util/excep.py ../util/geniserver.py ../util/geniticket.py ../util/gid.py ../util/misc.py ../util/record.py ../util/rights.py ../util/report.py ../util/trustedroot.py ../plc/trusted_roots install" echo $FILES -scp -i root_ssh_key.rsa -r $FILES root@$1:/usr/share/NodeManager +scp -i $KEY_FILE -r $FILES $USER@$1:$DEST_DIR diff --git a/component/sshnode.sh b/component/sshnode.sh index d25eb301..5f5533e1 100755 --- a/component/sshnode.sh +++ b/component/sshnode.sh @@ -1,2 +1,4 @@ +source component_slice_config.sh + echo connecting to node: $1 -ssh -i root_ssh_key.rsa root@$1 +ssh -i $KEY_FILE $USER@$1 -- 2.43.0