Skip to content

Commit d09b8bb

Browse files
authored
Merge pull request #1446 from heinemannj/main
Switch ebusd installation from apt to fetch_and_deploy_gh_release
2 parents 942c4da + 69dc86f commit d09b8bb

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

ct/ebusd.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,22 @@ function update_script() {
2323
header_info
2424
check_container_storage
2525
check_container_resources
26-
if [[ ! -f /etc/apt/sources.list.d/ebusd.sources ]]; then
26+
if [[ ! -f /etc/default/ebusd ]]; then
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
31-
msg_info "Updating ebusd"
32-
$STD apt update
33-
$STD apt upgrade -y ebusd
34-
msg_ok "Updated ebusd"
35-
msg_ok "Updated successfully!"
30+
if check_for_gh_release "ebusd" "john30/ebusd"; then
31+
msg_info "Stopping Services"
32+
systemctl stop ebusd.service
33+
msg_ok "Stopped Services"
34+
35+
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "/opt/ebusd" "ebusd-*_amd64-trixie_mqtt1.deb"
36+
37+
msg_info "Starting Services"
38+
systemctl start ebusd.service
39+
msg_ok "Started Services"
40+
msg_ok "Updated successfully!"
41+
fi
3642
exit
3743
}
3844

install/ebusd-install.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,9 @@ setting_up_container
1313
network_check
1414
update_os
1515

16-
setup_deb822_repo \
17-
"ebusd" \
18-
"https://raw.githubusercontent.com/john30/ebusd-debian/master/ebusd.gpg" \
19-
"https://repo.ebusd.eu/apt/default/bookworm/" \
20-
"bookworm" \
21-
"main"
22-
2316
msg_info "Installing ebusd"
24-
$STD apt install -y ebusd
25-
systemctl enable -q ebusd
17+
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "" "ebusd-*_amd64-trixie_mqtt1.deb"
18+
systemctl enable -q ebusd.service
2619
msg_ok "Installed ebusd"
2720

2821
motd_ssh

0 commit comments

Comments
 (0)