mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
🔨Add meal_plan_first_day_of_week variable
This commit is contained in:
parent
5969464a67
commit
56228c9472
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
},
|
||||
"tweaks": {
|
||||
"chores_assignment": true,
|
||||
"meal_plan_first_day_of_week": 0,
|
||||
"multiple_shopping_lists": true,
|
||||
"stock_best_before_date_tracking": true,
|
||||
"stock_location_tracking": true,
|
||||
|
@ -64,6 +65,7 @@
|
|||
},
|
||||
"tweaks": {
|
||||
"chores_assignment": "bool",
|
||||
"meal_plan_first_day_of_week": "int(0,6)?",
|
||||
"multiple_shopping_lists": "bool",
|
||||
"stock_best_before_date_tracking": "bool",
|
||||
"stock_location_tracking": "bool",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
export GROCY_CULTURE
|
||||
export GROCY_CURRENCY
|
||||
export GROCY_ENTRY_PAGE
|
||||
export GROCY_DAYWEEK
|
||||
|
||||
bashio::log.info "Starting PHP-FPM..."
|
||||
|
||||
|
@ -45,6 +46,11 @@ if bashio::config.false 'tweaks.chores_assignment'; then
|
|||
export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'tweaks.meal_plan_first_day_of_week'; then
|
||||
GROCY_DAYWEEK=$(bashio::config 'tweaks.meal_plan_first_day_of_week')
|
||||
export GROCY_MEAL_PLAN_FIRST_DAY_OF_WEEK=${GROCY_DAYWEEK}
|
||||
fi
|
||||
|
||||
if bashio::config.false 'tweaks.multiple_shopping_lists'; then
|
||||
export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue