Browse Source

Check email address

Bob Mottram 8 years ago
parent
commit
98347ef065
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-base-email

+ 3
- 1
src/freedombone-base-email View File

1649
     read_config_param MY_EMAIL_ADDRESS
1649
     read_config_param MY_EMAIL_ADDRESS
1650
     read_config_param DH_KEYLENGTH
1650
     read_config_param DH_KEYLENGTH
1651
 
1651
 
1652
-    MY_EMAIL_ADDRESS=${MY_USERNAME}@${DEFAULT_DOMAIN_NAME}
1652
+    if [ ${#MY_EMAIL_ADDRESS} -lt 3 ]; then
1653
+        MY_EMAIL_ADDRESS=${MY_USERNAME}@${DEFAULT_DOMAIN_NAME}
1654
+    fi
1653
 
1655
 
1654
     install_email_basic
1656
     install_email_basic
1655
     #install_email_with_tor
1657
     #install_email_with_tor