Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue 275-Fixed issue with how the boolean flags were set to 0 which caused errors in the application #276

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions grocy/rootfs/etc/services.d/php-fpm/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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")
Expand Down