|
|
@ -19,21 +19,26 @@ msg_info "Installing Dependencies" |
|
|
|
$STD apt-get install -y \ |
|
|
|
$STD apt-get install -y \ |
|
|
|
curl \ |
|
|
|
curl \ |
|
|
|
sudo \ |
|
|
|
sudo \ |
|
|
|
mc |
|
|
|
mc \ |
|
|
|
|
|
|
|
debian-keyring \ |
|
|
|
|
|
|
|
debian-archive-keyring \ |
|
|
|
|
|
|
|
lsb-release \ |
|
|
|
|
|
|
|
gpg \ |
|
|
|
|
|
|
|
apt-transport-https |
|
|
|
msg_ok "Installed Dependencies" |
|
|
|
msg_ok "Installed Dependencies" |
|
|
|
|
|
|
|
|
|
|
|
RELEASE=$(curl -s https://api.github.com/repos/evcc-io/evcc/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') |
|
|
|
msg_info "Setting up evcc Repository" |
|
|
|
msg_info "Installing ${APPLICATION} ${RELEASE}" |
|
|
|
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" |
|
|
|
wget -q "https://github.com/evcc-io/evcc/releases/download/${RELEASE}/evcc_${RELEASE}_amd64.deb" |
|
|
|
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 dpkg -i evcc_${RELEASE}_amd64.deb |
|
|
|
|
|
|
|
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" |
|
|
|
msg_info "Installing ${APPLICATION}" |
|
|
|
msg_ok "Installed ${APPLICATION} ${RELEASE}" |
|
|
|
$STD sudo apt install -y evcc |
|
|
|
|
|
|
|
msg_ok "Installed ${APPLICATION}" |
|
|
|
|
|
|
|
|
|
|
|
motd_ssh |
|
|
|
motd_ssh |
|
|
|
customize |
|
|
|
customize |
|
|
|
|
|
|
|
|
|
|
|
msg_info "Cleaning up" |
|
|
|
msg_info "Cleaning up" |
|
|
|
rm -rf evcc_${RELEASE}_amd64.deb |
|
|
|
|
|
|
|
$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" |