Skip to content
Snippets Groups Projects
Commit 560a4769 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check onion only state

parent 7bfe412a
No related branches found
No related tags found
No related merge requests found
......@@ -1015,7 +1015,9 @@ function email_smtp_proxy_through_isp {
isp_smtp_password="$4"
email_server_type='smarthost'
if [[ "$isp_smtp_domain" == 'off' || "$isp_smtp_domain" == '0' || "$isp_smtp_domain" == '' ]]; then
ONION_ONLY=$(grep "ONION_ONLY=" "/root/${PROJECT_NAME}.cfg" | awk -F '=' '{print $2}')
if [[ "$isp_smtp_domain" == 'off' || "$isp_smtp_domain" == '0' || "$isp_smtp_domain" == '' || "$ONION_ONLY" != 'no' ]]; then
{ echo '# password file used when the local exim is authenticating to a remote';
echo '# host as a client.';
echo '#';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment