Skip to content

Commit eed9526

Browse files
committed
Use tar dereference option (-h) to resolve symlinks (close #18)
1 parent bc8602e commit eed9526

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ IdentityFile ~/.ssh/myprivatehost_key
9999
# otherwise will use the id_rsa key for any other host
100100
```
101101

102+
#### Symlinks
103+
104+
In case you have symlink for any ssh file. Will be necessary map the volume of the symlink destination into the docker vault server. Otherwise will not be possible to resolve the symlink while copying the ssh files with the `ONVAULT` command.
105+
102106
### The private keys server
103107

104108
Run the server setting a volume to your `~/.ssh` folder:

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.get('/ssh.tgz', function (req, res) {
2424
exec('mktemp -q /tmp/ssh.XXXXXX', function (err, stdout) {
2525
var file = stdout.match(/(.+)/)[0];
2626

27-
exec('tar -c -z -C /vault/.ssh -f '+ file +' .', function (err, stdout, stderr) {
27+
exec('tar -chz -C /vault/.ssh -f '+ file +' .', function (err, stdout, stderr) {
2828
var filename = path.basename(file);
2929
var mimetype = mime.lookup(file);
3030

0 commit comments

Comments
 (0)