From aaaf583980975d0848dad35a30c65c983aa36134 Mon Sep 17 00:00:00 2001 From: Paul Sinclair Date: Sun, 1 Mar 2020 12:54:39 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Add=20Calendar=20day=20of=20week=20?= =?UTF-8?q?option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grocy/config.json | 1 + grocy/rootfs/etc/services.d/php-fpm/run | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/grocy/config.json b/grocy/config.json index dcfefee..6087637 100755 --- a/grocy/config.json +++ b/grocy/config.json @@ -63,6 +63,7 @@ "tasks": "bool" }, "tweaks": { + "calendar_first_day_of_week": "int(0,6)?", "chores_assignment": "bool", "meal_plan_first_day_of_week": "int(0,6)?", "multiple_shopping_lists": "bool", diff --git a/grocy/rootfs/etc/services.d/php-fpm/run b/grocy/rootfs/etc/services.d/php-fpm/run index d82f581..2c8b564 100644 --- a/grocy/rootfs/etc/services.d/php-fpm/run +++ b/grocy/rootfs/etc/services.d/php-fpm/run @@ -42,13 +42,18 @@ if bashio::config.false 'features.tasks'; then export GROCY_FEATURE_FLAG_TASKS=0 fi +if bashio::config.has_value 'tweaks.calendar_first_day_of_week'; then + GROCY_DAYWEEK=$(bashio::config 'tweaks.calendar_first_day_of_week') + export GROCY_CALENDAR_FIRST_DAY_OF_WEEK=${GROCY_DAYWEEK} +fi + 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} + GROCY_MEALDAY=$(bashio::config 'tweaks.meal_plan_first_day_of_week') + export GROCY_MEAL_PLAN_FIRST_DAY_OF_WEEK=${GROCY_MEALDAY} fi if bashio::config.false 'tweaks.multiple_shopping_lists'; then