updated scripts for copy stuff to pl_genicw
authorScott Baker <bakers@cs.arizona.edu>
Tue, 25 Nov 2008 22:06:52 +0000 (22:06 +0000)
committerScott Baker <bakers@cs.arizona.edu>
Tue, 25 Nov 2008 22:06:52 +0000 (22:06 +0000)
component/component_slice_config.sh [new file with mode: 0644]
component/copynode.sh
component/sshnode.sh

diff --git a/component/component_slice_config.sh b/component/component_slice_config.sh
new file mode 100644 (file)
index 0000000..ee263d8
--- /dev/null
@@ -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
index 0a5108e..ce5698a 100755 (executable)
@@ -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
index d25eb30..5f5533e 100755 (executable)
@@ -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