From f7b5b584ccab26e5724b46c9cd8e962c83ffa462 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:38:04 +0200 Subject: [PATCH] Fix & Remove some things --- ct/evcc.sh | 4 ++-- install/evcc-install.sh | 15 ++++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ct/evcc.sh b/ct/evcc.sh index f627cb38..7f8d95e8 100644 --- a/ct/evcc.sh +++ b/ct/evcc.sh @@ -55,8 +55,8 @@ function update_script() { header_info if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" -apt-get update &>/dev/null -apt-get install -y evcc &>/dev/null +apt update &>/dev/null +apt install -y evcc &>/dev/null msg_ok "Updated Successfully" exit } diff --git a/install/evcc-install.sh b/install/evcc-install.sh index 4aaaaa18..01f28b20 100644 --- a/install/evcc-install.sh +++ b/install/evcc-install.sh @@ -20,22 +20,19 @@ $STD apt-get install -y \ curl \ sudo \ mc \ - debian-keyring \ - debian-archive-keyring \ lsb-release \ - gpg \ - apt-transport-https + gpg msg_ok "Installed Dependencies" msg_info "Setting up evcc Repository" -curl -fsSL https://dl.evcc.io/public/evcc/stable/gpg.EAD5D0E07B0EC0FD.key | gpg --dearmor -o /etc/apt/keyrings/evcc-stable.gpg || msg_error "Failed to download GPG key" -echo "deb [signed-by=/etc/apt/keyrings/evcc-stable.gpg] https://dl.evcc.io/public/evcc/stable/deb/debian $(lsb_release -cs) main" >/etc/apt/sources.list.d/evcc-stable.list || msg_error "Failed to add EVCC repository" -$STD sudo apt update +curl -fsSL https://dl.evcc.io/public/evcc/stable/gpg.EAD5D0E07B0EC0FD.key | gpg --dearmor -o /etc/apt/keyrings/evcc-stable.gpg +echo "deb [signed-by=/etc/apt/keyrings/evcc-stable.gpg] https://dl.evcc.io/public/evcc/stable/deb/debian $(lsb_release -cs) main" >/etc/apt/sources.list.d/evcc-stable.list +$STD apt update msg_ok "evcc Repository setup sucessfully" msg_info "Installing ${APPLICATION}" -$STD sudo apt install -y evcc -$STD systemctl enable --now evcc.service +$STD apt install -y evcc +systemctl enable --now evcc.service msg_ok "Installed ${APPLICATION}" motd_ssh