Update 99-run.sh

This commit is contained in:
Alexandre
2022-05-15 08:46:56 +02:00
committed by GitHub
parent e54b9dc20d
commit bc5fead2e0

View File

@@ -143,6 +143,12 @@ if bashio::config.has_value 'Updates'; then
service cron start
fi
#################
# Fix for 5.7.5 #
#################
sed -i "s|$groups[$groudId]['sums'][$currencyId]['amount'] = bcadd($groups[$groudId]['sums'][$currencyId]['amount'], $transaction['amount'] ?? '0');|$groups[$groudId]['sums'][$currencyId]['amount'] = bcadd($groups[$groudId]['sums'][$currencyId]['amount'], (string)($transaction['amount'] ?? '0'));|g" "$(find / -type f -name 'GroupCollector.php' 2>/dev/null)"
##############
# LAUNCH APP #
##############