summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-13 15:13:33 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-13 15:13:33 +0000
commit4ada29df67d37041687a645c99bf7056203b5d80 (patch)
tree75b945db0b3c615e0fcb3abc421e8eca4e9c764f
parentb8e7ab1531ebe94ea1e7378323f934b1155e4ba7 (diff)
rapid-tunneling: include name in RA tarball
Include the name, as the file 'basename' in the remote-access tarball. This allows identifying it even if it was renamed. git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@9415 283159da-0705-0410-b60c-f2062b4bb6ad
-rwxr-xr-xrtadm1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtadm b/rtadm
index 15f74ef..dc358b6 100755
--- a/rtadm
+++ b/rtadm
@@ -36,6 +36,7 @@ create()
echo $PORT > ~/tmp/port
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 -m 700 -p ~/.ssh
umask 022