From f48861d8f12c3603cb25d7b79768b6031b3bbd1c Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 7 May 2014 02:30:43 -0400 Subject: samizdat-init-key.sh: use /root instead of not $HOME --- examples/samizdat-init-key.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/samizdat-init-key.sh b/examples/samizdat-init-key.sh index 0bd7a32..1fde8d1 100755 --- a/examples/samizdat-init-key.sh +++ b/examples/samizdat-init-key.sh @@ -1,4 +1,5 @@ #!/bin/sh +export GNUPGHOME=$ROOT/gpg/gnupghome pem_to_onion_url() { @@ -37,12 +38,12 @@ onion_url=$(pem_to_onion_url "$torkey") || exit echo "$passphrase" | \ kiki --keypairs \ strongswan="$ROOT"/etc/ipsec.d/private/"$onion_url".pem{"$ssl"} \ - ssh-client="$ROOT$HOME"/.ssh/id_rsa{"$ssh"} \ + ssh-client="$ROOT"/root/.ssh/id_rsa{"$ssh"} \ ssh-host="$ROOT"/etc/ssh/ssh_host_rsa_key{"$ssh"} \ --passphrase-fd 0 || exit # Finally, export public keys if they do not exist. -makepub ssh-client "$ROOT$HOME/.ssh/id_rsa.pub" +makepub ssh-client "$ROOT/root/.ssh/id_rsa.pub" makepub ssh-host "$ROOT/etc/ssh/ssh_host_rsa_key.pub" # TODO: makepub can be made obsolete by implementing something like this: -- cgit v1.2.3