From 33dede7b9d4bfa943166aa317e02afe78e8fae34 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 16 May 2022 11:46:21 +0200 Subject: [PATCH] Solve 5.7.5 https://github.com/alexbelgium/hassio-addons/issues/316 --- fireflyiii/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fireflyiii/Dockerfile b/fireflyiii/Dockerfile index 370198792..6d12e21fb 100644 --- a/fireflyiii/Dockerfile +++ b/fireflyiii/Dockerfile @@ -16,7 +16,7 @@ ARG BUILD_FROM ARG BUILD_VERSION -ARG BUILD_UPSTREAM="5.7.5" +ENV BUILD_UPSTREAM="5.7.5" FROM fireflyiii/core:latest ################## @@ -33,8 +33,9 @@ RUN \ ################# # Fix for 5.7.5 # ################# + if [[ "$BUILD_UPSTREAM" == "5.7.5" ]] ; then \ sed -i "s#'amount'], \$transaction #'amount'], (string)(\$transaction#g" /var/www/html/app/Helpers/Collector/GroupCollector.php \ - && sed -i "s#'0');#'0'));#g" /var/www/html/app/Helpers/Collector/GroupCollector.php + && sed -i "s#'0');#'0'));#g" /var/www/html/app/Helpers/Collector/GroupCollector.php; fi ################## # 3 Install apps #