aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
diff options
context:
space:
mode:
authorbasbebe <git@bastianbeuttel.com>2021-01-10 14:45:20 +0100
committerbasbebe <git@bastianbeuttel.com>2021-09-30 10:46:06 +0200
commitad09f543afd90efe93093d699411993875630367 (patch)
treeb0529ffe58462075a40ca50370319fe2250ba084 /README.md
parentStage alternatives section and cleanup grammar (diff)
downloadYubiKey-Guide-ad09f543afd90efe93093d699411993875630367.tar.gz
add prefix and date to temporary folder
This makes identifying the latest version easier when daleing with backups.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 124e4ec..7eaf31a 100644
--- a/README.md
+++ b/README.md
@@ -403,7 +403,7 @@ An entropy pool value greater than 2000 is sufficient.
Create a temporary directory which will be cleared on [reboot](https://en.wikipedia.org/wiki/Tmpfs) and set it as the GnuPG directory:
```console
-$ export GNUPGHOME=$(mktemp -d)
+$ export GNUPGHOME=$(mktemp -d -t gnupg_$(date +%Y%m%d%H%M)_XXX)
```
Otherwise, to preserve the working environment, set the GnuPG directory to your home folder:
@@ -1800,7 +1800,7 @@ $ sudo mount /dev/mapper/secret /mnt/encrypted-storage
Import the master key and configuration to a temporary working directory:
```console
-$ export GNUPGHOME=$(mktemp -d)
+$ export GNUPGHOME=$(mktemp -d -t gnupg_$(date +%Y%m%d%H%M)_XXX)
$ gpg --import /mnt/encrypted-storage/tmp.XXX/mastersub.key