mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-20 04:25:16 +00:00
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:
12
ct/evcc.sh
12
ct/evcc.sh
@@ -23,10 +23,18 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
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!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit 1
|
||||||
fi
|
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"
|
msg_info "Updating evcc LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt --only-upgrade install -y evcc
|
$STD apt --only-upgrade install -y evcc
|
||||||
|
|||||||
@@ -14,14 +14,13 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y \
|
|
||||||
lsb-release
|
|
||||||
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
|
setup_deb822_repo \
|
||||||
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
|
"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"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
msg_ok "evcc Repository setup sucessfully"
|
msg_ok "evcc Repository setup sucessfully"
|
||||||
|
|
||||||
@@ -32,8 +31,4 @@ msg_ok "Installed evcc"
|
|||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
cleanup_lxc
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get -y autoremove
|
|
||||||
$STD apt-get -y autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user