Read domain variables from configuration file
This commit is contained in:
parent
d59aa5dac9
commit
b96ab2849d
|
@ -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 ' {';
|
||||
|
|
Loading…
Reference in New Issue