updated scripts for copy stuff to pl_genicw
[sfa.git] / component / copynode.sh
index 572a2e0..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/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