summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-13 15:24:49 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-13 15:24:49 +0000
commit223610772fd906a57bc2f82ddd0a7d13ea3283bc (patch)
tree0fce4f28cf240474848923a7b9faeb8d437509ba
parent4ada29df67d37041687a645c99bf7056203b5d80 (diff)
rapid-tunneling: RA tarballs: under tar/
Create the remote-access-* tarballs under the subdirectory tar/ . git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@9416 283159da-0705-0410-b60c-f2062b4bb6ad
-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