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 ' {';
|
||||||
echo " \"name\": \"${app_name}\",";
|
echo " \"name\": \"${app_name}\",";
|
||||||
echo " \"short_description\": \"$SHORT_DESCRIPTION\",";
|
echo " \"short_description\": \"$SHORT_DESCRIPTION\",";
|
||||||
echo " \"description\": \"$DESCRIPTION))\",";
|
echo " \"description\": \"$DESCRIPTION\",";
|
||||||
echo " \"icon_url\": \"$ICON_URL\",";
|
echo " \"icon_url\": \"$ICON_URL\",";
|
||||||
echo " \"clients\": ["; } >> "$plinth_api"
|
echo " \"clients\": ["; } >> "$plinth_api"
|
||||||
|
|
||||||
|
read_config_param "${app_name_upper}_DOMAIN_NAME"
|
||||||
domain_name=$(("${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 ' {';
|
||||||
echo " \"name\": \"${app_name}\",";
|
echo " \"name\": \"${app_name}\",";
|
||||||
echo " \"platforms\": [";
|
echo " \"platforms\": [";
|
||||||
|
@ -99,7 +100,7 @@ function android_update_apps {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MOBILE_APP_URL" ]; then
|
if [ "$MOBILE_APP_URL" ]; then
|
||||||
if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
|
if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
|
||||||
echo ',' >> "$plinth_api"
|
echo ',' >> "$plinth_api"
|
||||||
fi
|
fi
|
||||||
{ echo ' {';
|
{ echo ' {';
|
||||||
|
|
Loading…
Reference in New Issue