From e383a40f6c5b636fb4848ba167f82d4c87e0f034 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 7 Feb 2021 14:48:38 +0100 Subject: [PATCH] Added script to import already installed ssh- and gpg keys --- .gitignore | 2 ++ import-local-keys.sh | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 .gitignore create mode 100755 import-local-keys.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9de9000 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/roles/user-account/files/ssh/ +/roles/user-account/files/gnupg/ diff --git a/import-local-keys.sh b/import-local-keys.sh new file mode 100755 index 0000000..14cd8ec --- /dev/null +++ b/import-local-keys.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +mkdir -p roles/user-account/files/ssh +cp -v /home/mandlm/.ssh/id_rsa* roles/user-account/files/ssh/ + +mkdir -p roles/user-account/files/gnupg +cp -rv /home/mandlm/.gnupg/* roles/user-account/files/gnupg/