🔨Add meal_plan_first_day_of_week variable

This commit is contained in:
Paul Sinclair 2020-02-29 21:40:15 -05:00
parent 5969464a67
commit 56228c9472
No known key found for this signature in database
GPG key ID: 779C7A23E1AA845D
2 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,7 @@
}, },
"tweaks": { "tweaks": {
"chores_assignment": true, "chores_assignment": true,
"meal_plan_first_day_of_week": 0,
"multiple_shopping_lists": true, "multiple_shopping_lists": true,
"stock_best_before_date_tracking": true, "stock_best_before_date_tracking": true,
"stock_location_tracking": true, "stock_location_tracking": true,
@ -64,6 +65,7 @@
}, },
"tweaks": { "tweaks": {
"chores_assignment": "bool", "chores_assignment": "bool",
"meal_plan_first_day_of_week": "int(0,6)?",
"multiple_shopping_lists": "bool", "multiple_shopping_lists": "bool",
"stock_best_before_date_tracking": "bool", "stock_best_before_date_tracking": "bool",
"stock_location_tracking": "bool", "stock_location_tracking": "bool",

View file

@ -6,6 +6,7 @@
export GROCY_CULTURE export GROCY_CULTURE
export GROCY_CURRENCY export GROCY_CURRENCY
export GROCY_ENTRY_PAGE export GROCY_ENTRY_PAGE
export GROCY_DAYWEEK
bashio::log.info "Starting PHP-FPM..." 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 export GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS=0
fi 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 if bashio::config.false 'tweaks.multiple_shopping_lists'; then
export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=0 export GROCY_FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS=0
fi fi