From 8409b0f19819ca8079203bc028f76947a1085593 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 26 Oct 2016 22:55:59 +0100 Subject: [PATCH] Copy letsencrypt keys if available --- src/freedombone-utils-setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 50fd8e50..b9174785 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -203,6 +203,11 @@ function search_for_attached_usb_drive { MY_GPG_PUBLIC_KEY=$USB_MOUNT/public_key.gpg fi + if [ -f $USB_MOUNT/letsencrypt ]; then + echo $'Copying letsencrypt keys"' + cp -r $USB_MOUNT/letsencrypt /etc + fi + if [ -d $USB_MOUNT/.ssh ]; then echo $'Importing ssh keys' cp -r $USB_MOUNT/.ssh /home/$MY_USERNAME