Read domain variables from configuration file

This commit is contained in:
Bob Mottram 2018-05-25 18:50:32 +01:00
parent d59aa5dac9
commit b96ab2849d
1 changed files with 4 additions and 3 deletions

View File

@ -81,12 +81,13 @@ function android_update_apps {
{ echo ' {';
echo " \"name\": \"${app_name}\",";
echo " \"short_description\": \"$SHORT_DESCRIPTION\",";
echo " \"description\": \"$DESCRIPTION))\",";
echo " \"description\": \"$DESCRIPTION\",";
echo " \"icon_url\": \"$ICON_URL\",";
echo " \"clients\": ["; } >> "$plinth_api"
read_config_param "${app_name_upper}_DOMAIN_NAME"
domain_name=$(("${app_name_upper}_DOMAIN_NAME"))
if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
{ echo ' {';
echo " \"name\": \"${app_name}\",";
echo " \"platforms\": [";
@ -99,7 +100,7 @@ function android_update_apps {
fi
if [ "$MOBILE_APP_URL" ]; then
if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
echo ',' >> "$plinth_api"
fi
{ echo ' {';