Compare commits

..

3 Commits

Author SHA1 Message Date
tteckster c451bea9d3 Update evcc-install.sh
make silent
2024-10-15 05:46:42 -04:00
CanbiZ 35789659df remove APPLICATION and set evcc as hard code 2024-10-15 11:41:13 +02:00
CanbiZ f7b5b584cc Fix & Remove some things 2024-10-15 11:38:04 +02:00
2 changed files with 12 additions and 15 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -f /etc/apt/sources.list.d/evcc-stable.list ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP} LXC" msg_info "Updating evcc LXC"
apt-get update &>/dev/null apt update &>/dev/null
apt-get install -y evcc &>/dev/null apt install -y evcc &>/dev/null
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }
+9 -12
View File
@@ -20,23 +20,20 @@ $STD apt-get install -y \
curl \ curl \
sudo \ sudo \
mc \ mc \
debian-keyring \
debian-archive-keyring \
lsb-release \ lsb-release \
gpg \ gpg
apt-transport-https
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up evcc Repository" 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" 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 || msg_error "Failed to add EVCC repository" 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 sudo apt update $STD apt update
msg_ok "evcc Repository setup sucessfully" msg_ok "evcc Repository setup sucessfully"
msg_info "Installing ${APPLICATION}" msg_info "Installing evcc"
$STD sudo apt install -y evcc $STD apt install -y evcc
$STD systemctl enable --now evcc.service systemctl enable -q --now evcc.service
msg_ok "Installed ${APPLICATION}" msg_ok "Installed evcc"
motd_ssh motd_ssh
customize customize
@@ -44,4 +41,4 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"