mirror of
https://github.com/tteck/Proxmox.git
synced 2026-07-04 01:35:23 +02:00
Compare commits
3 Commits
e74402749d
...
c451bea9d3
| Author | SHA1 | Date | |
|---|---|---|---|
| c451bea9d3 | |||
| 35789659df | |||
| f7b5b584cc |
+3
-3
@@ -54,9 +54,9 @@ function default_settings() {
|
||||
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
|
||||
msg_info "Updating evcc LXC"
|
||||
apt update &>/dev/null
|
||||
apt install -y evcc &>/dev/null
|
||||
msg_ok "Updated Successfully"
|
||||
exit
|
||||
}
|
||||
|
||||
+9
-12
@@ -20,23 +20,20 @@ $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
|
||||
msg_ok "Installed ${APPLICATION}"
|
||||
msg_info "Installing evcc"
|
||||
$STD apt install -y evcc
|
||||
systemctl enable -q --now evcc.service
|
||||
msg_ok "Installed evcc"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
@@ -44,4 +41,4 @@ customize
|
||||
msg_info "Cleaning up"
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Cleaned"
|
||||
|
||||
Reference in New Issue
Block a user