chore: evcc: refactor (#9057)

* chore: evcc: refactor

* chore: evcc: update to deb822

* fix

* update

* fix

* fix

* Fix version codename retrieval in evcc.sh

* Fix version codename retrieval in install script

* Remove installation of lsb-release dependency

Removed dependency installation for lsb-release.

---------

Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
Tobias
2025-11-12 08:54:46 +01:00
committed by GitHub
parent 00a7f5fbe1
commit 02945a4455
2 changed files with 17 additions and 14 deletions

View File

@@ -23,10 +23,18 @@ function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then
if ! command -v evcc >/dev/null 2>&1; then
msg_error "No ${APP} Installation Found!"
exit
exit 1
fi
if [[ -f /etc/apt/sources.list.d/evcc-stable.list ]]; then
setup_deb822_repo \
"evcc-stable" \
"https://dl.evcc.io/public/evcc/stable/gpg.EAD5D0E07B0EC0FD.key" \
"https://dl.evcc.io/public/evcc/stable/deb/debian/" \
"$(get_os_info codename)" \
"main"
msg_info "Updating evcc LXC"
$STD apt update
$STD apt --only-upgrade install -y evcc