Copy letsencrypt keys if available

This commit is contained in:
Bob Mottram 2016-10-26 22:55:59 +01:00
parent 1f76684968
commit 8409b0f198
1 changed files with 5 additions and 0 deletions

View File

@ -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