Generate gpg key

merge-requests/21/head
Bob Mottram 2021-03-16 11:04:44 +00:00
parent 451d44bb21
commit a83ae4d071
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ if [[ ! "$notificationType" ]]; then
exit 5
fi
if [ ! -d ${HOME}/.gnupg ]; then
echo 'Generating GPG key'
gpg --quick-generate-key "${HANDLE}" ed25519 cert
fi
{ echo '[Unit]';
echo 'Description=Epicyon Desktop Notifications';
echo '';