From 006d3553778360aa6172594fda889ce9fe566a97 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jul 2017 12:48:41 +0100 Subject: [PATCH] Extra email check --- src/freedombone-app-keyserver | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-keyserver b/src/freedombone-app-keyserver index 56ab5e97..d24ec8dc 100755 --- a/src/freedombone-app-keyserver +++ b/src/freedombone-app-keyserver @@ -384,10 +384,12 @@ function keyserver_sync { fi if [[ "$other_keyserver_email" != "pgp-public-keys@" ]]; then if [[ "$other_keyserver_email" == *"@"* ]]; then - keyserver_create_mailsync - if ! grep -q "$other_keyserver_email" /etc/sks/mailsync; then - echo "$other_keyserver_email" >> /etc/sks/mailsync - chown -Rc debian-sks: /etc/sks/mailsync + if [[ "$other_keyserver_email" == *"."* ]]; then + keyserver_create_mailsync + if ! grep -q "$other_keyserver_email" /etc/sks/mailsync; then + echo "$other_keyserver_email" >> /etc/sks/mailsync + chown -Rc debian-sks: /etc/sks/mailsync + fi fi fi fi