diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-06-13 15:24:49 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-06-13 15:24:49 +0000 |
commit | 223610772fd906a57bc2f82ddd0a7d13ea3283bc (patch) | |
tree | 0fce4f28cf240474848923a7b9faeb8d437509ba | |
parent | 4ada29df67d37041687a645c99bf7056203b5d80 (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-- | README | 1 | ||||
-rwxr-xr-x | rtadm | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -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. @@ -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 |