⬆️ Upgrades Grocy to v2.4.1 (#20)

* ⬆️ Upgrades Grocy to v2.4.0

* Add new config options

* Hide all stock related things

* Fix env var name

* ⬆️ Upgrades Grocy to v2.4.1
This commit is contained in:
Jorim Tielemans 2019-05-24 20:09:52 +02:00 committed by Franck Nijhof
parent d4aba244d1
commit 0dd3b81031
3 changed files with 8 additions and 2 deletions

View file

@ -27,7 +27,7 @@ RUN \
\ \
&& yarn global add modclean \ && yarn global add modclean \
\ \
&& git clone --branch "v2.3.0" --depth=1 \ && git clone --branch "v2.4.1" --depth=1 \
https://github.com/grocy/grocy.git /var/www/grocy \ https://github.com/grocy/grocy.git /var/www/grocy \
\ \
&& cd /var/www/grocy \ && cd /var/www/grocy \

View file

@ -35,6 +35,7 @@
"equipment": true, "equipment": true,
"recipes": true, "recipes": true,
"shoppinglist": true, "shoppinglist": true,
"stock": true,
"tasks": true "tasks": true
}, },
"ssl": true, "ssl": true,
@ -43,7 +44,7 @@
}, },
"schema": { "schema": {
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?", "log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
"culture": "match(^(da|de|en|es|fr|it|nl|no|pl|ru|ta|tr)$)", "culture": "match(^(da|de|en|es|fr|it|nl|no|pl|ru|sv_SE|ta|tr)$)",
"currency": "str", "currency": "str",
"features": { "features": {
"batteries": "bool", "batteries": "bool",
@ -52,6 +53,7 @@
"equipment": "bool", "equipment": "bool",
"recipes": "bool", "recipes": "bool",
"shoppinglist": "bool", "shoppinglist": "bool",
"stock": "bool",
"tasks": "bool" "tasks": "bool"
}, },
"ssl": "bool", "ssl": "bool",

View file

@ -32,6 +32,10 @@ if bashio::config.false 'features.shoppinglist'; then
export GROCY_FEATURE_FLAG_SHOPPINGLIST=0 export GROCY_FEATURE_FLAG_SHOPPINGLIST=0
fi fi
if bashio::config.false 'features.stock'; then
export GROCY_FEATURE_FLAG_STOCK=0
fi
if bashio::config.false 'features.tasks'; then if bashio::config.false 'features.tasks'; then
export GROCY_FEATURE_FLAG_TASKS=0 export GROCY_FEATURE_FLAG_TASKS=0
fi fi