Skip to content
Snippets Groups Projects
Commit a12fa061 authored by efer's avatar efer
Browse files

add remote host to scp command

parent 241fa2ff
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ else
ssh -i $SSHKEY $RUSER@$TARGETNODE "mkdir $RHOME/$HOST && chmod 700 $RHOME/$HOST"
if [ $? = 0 ]; then
if [ -f "$SERIAL" ]; then
scp -i $SSHKEY $SERIAL $RHOME/$HOST/ &>/dev/null
scp -i $SSHKEY $SERIAL $RUSER@$TARGETNODE:$RHOME/$HOST/ &>/dev/null
else
echo "No Serial file to copy..."
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment