summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rwxr-xr-xrtadm4
2 files changed, 4 insertions, 1 deletions
diff --git a/README b/README
index 14d3682..a85638f 100644
--- a/README
+++ b/README
@@ -69,6 +69,7 @@ clint::
This has created 'remote-access-clint.tar.gz' which has the details of
the connection. The next step is to deliver that tarball to the client.
+The file is created under the subdirectory ''tar/'' .
The client now connects to the web interface, places the tarball and clicks
on "Connect". A connection should be established.
diff --git a/rtadm b/rtadm
index dc358b6..6436ea5 100755
--- a/rtadm
+++ b/rtadm
@@ -37,7 +37,9 @@ create()
echo $USERNAME > ~/tmp/user
echo $TUNNEL_PORT > ~/tmp/tunnelport
echo $COMMENT > ~/tmp/basename
- tar -czf remote-access-$COMMENT.tar.gz -C ~/tmp host key port tunnelport user --owner root --group root
+ mkdir -p "$HOME/tar"
+ tarball="$HOME/tar/remote-access-$COMMENT.tar.gz"
+ tar -czf $tarball -C ~/tmp host key port tunnelport user --owner root --group root
mkdir -m 700 -p ~/.ssh
umask 022
cat ~/tmp/key.pub >> ~/.ssh/authorized_keys