Fixed issue with how the boolean flags were set to 0 which caused errors in Grocy

This commit is contained in:
Nathan Clark 2022-02-07 23:07:41 -05:00
parent 7cc3aa3d19
commit 5e5ec60b81

View file

@ -12,35 +12,35 @@ export GROCY_ENTRY_PAGE
bashio::log.info "Starting PHP-FPM..."
if bashio::config.false 'features.batteries'; then
export GROCY_FEATURE_FLAG_BATTERIES=0
export GROCY_FEATURE_FLAG_BATTERIES=false
fi
if bashio::config.false 'features.calendar'; then
export GROCY_FEATURE_FLAG_CALENDAR=0
export GROCY_FEATURE_FLAG_CALENDAR=false
fi
if bashio::config.false 'features.chores'; then
export GROCY_FEATURE_FLAG_CHORES=0
export GROCY_FEATURE_FLAG_CHORES=false
fi
if bashio::config.false 'features.equipment'; then
export GROCY_FEATURE_FLAG_EQUIPMENT=0
export GROCY_FEATURE_FLAG_EQUIPMENT=false
fi
if bashio::config.false 'features.recipes'; then
export GROCY_FEATURE_FLAG_RECIPES=0
export GROCY_FEATURE_FLAG_RECIPES=false
fi
if bashio::config.false 'features.shoppinglist'; then
export GROCY_FEATURE_FLAG_SHOPPINGLIST=0
export GROCY_FEATURE_FLAG_SHOPPINGLIST=false
fi
if bashio::config.false 'features.stock'; then
export GROCY_FEATURE_FLAG_STOCK=0
export GROCY_FEATURE_FLAG_STOCK=false
fi
if bashio::config.false 'features.tasks'; then
export GROCY_FEATURE_FLAG_TASKS=0
export GROCY_FEATURE_FLAG_TASKS=false
fi
if bashio::config.has_value 'tweaks.calendar_first_day_of_week'; then
@ -49,7 +49,7 @@ if bashio::config.has_value 'tweaks.calendar_first_day_of_week'; then
fi
if bashio::config.false 'tweaks.chores_assignment'; then
export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0
export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=false
fi
if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then
@ -58,31 +58,31 @@ if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then
fi
if bashio::config.false 'tweaks.multiple_shopping_lists'; then
export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=0
export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=false
fi
if bashio::config.false 'tweaks.stock_best_before_date_tracking'; then
export GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING=0
export GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING=false
fi
if bashio::config.false 'tweaks.stock_location_tracking'; then
export GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING=0
export GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING=false
fi
if bashio::config.false 'tweaks.stock_price_tracking'; then
export GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING=0
export GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING=false
fi
if bashio::config.false 'tweaks.stock_product_freezing'; then
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_FREEZING=0
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_FREEZING=false
fi
if bashio::config.false 'tweaks.stock_product_opened_tracking'; then
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING=0
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING=false
fi
if bashio::config.false 'tweaks.stock_count_opened_products_against_minimum_stock_amount'; then
export GROCY_FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT=0
export GROCY_FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT=false
fi
GROCY_CULTURE=$(bashio::config "culture")