From 446efbabbaa5d1a5476475a9517aaf4e91f829fa Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 7 Aug 2024 10:49:28 +0200 Subject: [PATCH] Fix configcheck failing due to database warning (#15281) --- packaging/scripts/postremove.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/scripts/postremove.sh b/packaging/scripts/postremove.sh index 57e207b9c..55d151721 100644 --- a/packaging/scripts/postremove.sh +++ b/packaging/scripts/postremove.sh @@ -23,7 +23,7 @@ fi # else: Ask user if he wants to keep the old version (working) or the new version (not working) # Remember the choice with /tmp/.evccrollback and fail new-postrm failed-upgrade old-version new-version to initiate dpkg's rollback if [ "$1" = "upgrade" ] && [ -t 0 ]; then - if ! /usr/bin/evcc checkconfig > /dev/null; then + if ! EVCC_DATABASE_DSN=/var/lib/evcc/evcc.db /usr/bin/evcc checkconfig > /dev/null; then echo "--------------------------------------------------------------------------------" echo "ERROR: your configuration is not compatible with the new version:" /usr/bin/evcc checkconfig --log error || true @@ -57,4 +57,4 @@ if [ "$1" = "failed-upgrade" ]; then rm "/tmp/.evccrollback" exit 1 fi -fi \ No newline at end of file +fi