Copy recovered keys to root

This commit is contained in:
Bob Mottram 2016-10-27 15:26:56 +01:00
parent a2c59b9e79
commit 840131cae4
1 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,9 @@ function interactive_key_recovery {
255) return;; 255) return;;
esac esac
${PROJECT_NAME}-recoverkey -u $MY_USERNAME ${PROJECT_NAME}-recoverkey -u $MY_USERNAME
if [ -d /home/$MY_USERNAME/.gnupg ]; then
cp -rf /home/$MY_USERNAME/.gnupg /root
fi
} }
# NOTE: deliberately there is no "exit 0" # NOTE: deliberately there is no "exit 0"