Prepend https to domains

This commit is contained in:
Bob Mottram 2018-05-25 20:06:38 +01:00
parent d182906ee1
commit 9737d2cc45
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ function android_update_apps {
read_config_param "${app_name_upper}_DOMAIN_NAME"
test_domain_name="${app_name_upper}_DOMAIN_NAME"
domain_name=${!test_domain_name}
if [ "$domain_name" ]; then
if [[ "$domain_name" != *'.onion' ]]; then
domain_name="https://${!test_domain_name}"
else
domain_name="http://${!test_domain_name}"
fi
fi
if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
{ echo ' {';
echo " \"name\": \"${app_name}\",";